/*
 * Dimitri Desiron portfolio
 * Header and navigation
 */


/* --------------------------------------------------
   General
-------------------------------------------------- */

html {
    background-color: #444444;
}

body {
    background-color: #444444;
    color: white;
    font-family: "Droid Sans", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}


/* --------------------------------------------------
   Header
-------------------------------------------------- */

.site-header {
    width: 100%;
    padding: 30px 50px;
	background-color: #444444;
	border-bottom: 1px solid #5d5d5d;

    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    position: fixed;
    top: 0;
    left: 0;
    z-index: 30;

    transition: transform 0.35s ease;
    will-change: transform;
}

.site-header.headroom--visible {
    transform: translateY(0);
}

.site-header.headroom--hidden {
    transform: translateY(calc(-100% - 30px));
}

main {
    padding-top: 90px;
}


/* --------------------------------------------------
   Logo
-------------------------------------------------- */

.site-logo {
    flex: 0 1 auto;
}

.site-logo a {
    display: block;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

@media (max-width: 767px) {
	.site-logo img {
		padding-left: 3px;
	}
}

/* --------------------------------------------------
   Main navigation
-------------------------------------------------- */

.main-navigation {
    margin-left: 40px;
}

.main-navigation ul {
    display: flex;

    margin: 0;
    padding: 0;

    list-style: none;

    gap: 30px;
}

.main-navigation li {
    margin: 0;
    padding: 0;
}

.main-navigation a {
    display: block;
	margin-top: 7px;

    color: #e1e1e1;
    text-decoration: none;

    white-space: nowrap;

    transition:
        color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus {
    color: white;
}

.main-navigation a.current {
    color: white;
}


/* --------------------------------------------------
   Keyboard focus
-------------------------------------------------- */

.main-navigation a:focus-visible,
.menu-toggle:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}


/* --------------------------------------------------
   Hamburger button
-------------------------------------------------- */

.menu-toggle {
    display: none;

    width: 40px;
    height: 40px;

    padding: 1px 8px 8px 8px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 2px;

    margin: 5px auto;

    background-color: #e1e1e1;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        background-color 0.2s ease;
}

.menu-toggle:hover span {
    background-color: white;
}


/* --------------------------------------------------
   Mobile navigation
-------------------------------------------------- */

@media (max-width: 767px) {

    body {
        font-size: 17px;
    }


    /* Header */

	.site-header {
        width: 100%;
        padding: 20px;
    }

	main {
		padding-top: 80px;
	}

    .site-header.headroom--hidden {
        transform: translateY(calc(-100% - 20px));
    }


    /* Logo */

    .site-logo {
        max-width: calc(100% - 60px);

        position: relative;
        z-index: 30;
    }


    /* Hamburger */

    .menu-toggle {
        display: block;

        flex: 0 0 40px;

        position: relative;
        z-index: 40;
    }


    /* Full-screen navigation overlay */

    .main-navigation {
        position: fixed;

        top: 0;
        left: 0;

        width: 100%;
        height: 100vh;
        height: 100svh;

        margin: 0;
        padding: 100px 20px 40px;

        background-color: rgba(68, 68, 68, 0.9);

        display: flex;
        align-items: center;
        justify-content: center;

        overflow: hidden;

        visibility: hidden;
        opacity: 0;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0s linear 0.3s;

        z-index: 20;
    }


    /* Navigation list */

    .main-navigation ul {
        display: flex;
        flex-direction: column;

        align-items: center;
        justify-content: center;

        width: 100%;

        gap: 20px;

        margin: 0;
        padding: 0;

        list-style: none;
    }


    /* Navigation items */

    .main-navigation li {
        width: 100%;

        text-align: center;
    }


    .main-navigation a {
        display: block;

        padding: 6px 0;

        color: #e1e1e1;
        font-size: 24px;
        line-height: 1.4;

        text-align: center;
        text-transform: uppercase;
        text-decoration: none;

        transition: color 0.2s ease;
    }


    .main-navigation a:hover,
    .main-navigation a:focus {
        color: white;
    }


    /* Open navigation */

    .main-navigation.is-open {
        visibility: visible;
        opacity: 1;

        transform: translateY(0);

        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }


    /* Hamburger animation */

    .menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

}


/* --------------------------------------------------
   Very small screens
-------------------------------------------------- */

@media (max-width: 400px) {

    .site-header {
        width: 100%;
        padding: 20px;
    }

}



/* --------------------------------------------------
   Homepage
-------------------------------------------------- */

/* --------------------------------------------------
   Homepage
-------------------------------------------------- */

.home-page {
    width: 100%;
}

.hero-link {
    display: block;

    width: 100%;
    height: 100vh;
    height: 100svh;

    overflow: hidden;
}

/* The ideal object-position depends on the actual composition of hero.webp. 
   For example, if the important part of the painting is towards the top, you could use:
   object-position: center top;   or   object-position: 50% 40%; */
.hero-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover; /* Fill the entire area, even if that means cropping some of the image. */
    object-position: center; /* by default, the cropping happens equally around the centre of the image */
}


/* --------------------------------------------------
   Footer
-------------------------------------------------- */

.site-footer {
    width: 100%;
    margin: 0;
}

.footer-inner {
    width: 100%;
    max-width: 1780px;
    margin: 80px auto 0 auto;
}

@media (max-width: 767px) {
	.home-page + .site-footer .footer-inner {
		margin-top: 0;
	}
}

.footer-line {
    width: 100%;
    height: 1px;

    background-color: #f2f3f4;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;

    margin: 50px 0;
}

.social-links a {
    display: block;
    line-height: 0;
}

.social-links img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}


/* --------------------------------------------------
   Footer on screens below 1780px
-------------------------------------------------- */

@media (max-width: 1779px) {

    .social-links {
        margin: 50px;
    }

}




/* =========================================================
   GALLERY
   ========================================================= */

.gallery-page {
    width: 100%;
}

.gallery {
    width: calc(100% - 120px);
    max-width: 1780px;
    margin: 0 auto;
	margin-top: 25px;
    padding: 0;

    visibility: hidden;
}

@media (max-width: 767px) {
	.gallery {
		width: calc(100% - 60px);
	}
}


.gallery.is-ready {
    visibility: visible;
}

.gallery-row {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    gap: var(--gallery-gap);
    align-items: flex-start;
}

.gallery-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-caption {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-top: 20px;
    color: white;
    font-size: 0.8em;
    line-height: 1.4;
}

.painting-title {
    display: inline;
}

.painting-year {
    display: inline;
    margin-left: 7px;
	color: #a7a7a7;
}

.sold-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-radius: 50%;
    background-color: red;
    flex: 0 0 auto;
}

.gallery-row + .gallery-row {
    margin-top: var(--gallery-row-gap);
}

@media (max-width: 599px) {

    .gallery-row {
        justify-content: center;
    }
	.gallery-caption {
        font-size: 0.8em;
		justify-content: center;
    }
	

}


/* =========================================================
   LIGHTBOX
   ========================================================= */

.gallery-image-button {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: transparent;

    cursor: zoom-in;
}

.gallery-image-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}


/* --------------------------------------------------
   Lightbox overlay
-------------------------------------------------- */

/* LIGHTBOX */

.lightbox {
    --lightbox-margin:
        clamp(
            30px,
            calc(23.68px + 1.974vw),
            60px
        );

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: #212121;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: var(--lightbox-margin);
    box-sizing: border-box;

    visibility: hidden;
    opacity: 0;

    overflow: auto;

    transition:
        opacity .25s ease,
        visibility 0s linear .25s;

    z-index: 100;
}

.lightbox.is-open {
    visibility: visible;
    opacity: 1;

    transition:
        opacity .25s ease;
}


/* Lightbox image / caption block */

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: var(--lightbox-image-width);
    max-width: calc(100vw - (2 * var(--lightbox-margin)));

    flex: 0 0 auto;

    transition:
        opacity .3s ease,
        transform .3s ease;
}

.lightbox-content.is-changing {
    opacity: 0;
}


/* Large image */

.lightbox-image {
    display: block;

    width: var(--lightbox-image-width);
    height: var(--lightbox-image-height);

    max-width: 1800px;
    max-height: 1200px;

    object-fit: contain;
}


/* Caption */

.lightbox-caption {
    width: 100%;
    margin-top: 15px;

    color: white;

    font-size: 16px;
    line-height: 1.4;

    text-align: left;
}

.lightbox-caption-line {
    display: block;
}

.lightbox-caption-line-secondary {
    color: #cfcfcf;
    font-size: .8em;
}

.lightbox-sold {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.lightbox-sold-dot {
    display: inline-block;

    width: 7px;
    height: 7px;

    margin: 0 7px 0 5px;

    border-radius: 50%;
    background: red;
}


/* Close button */

.lightbox-close {
    position: absolute;

    top: 30px;
    right: 30px;

    width: 26px;
    height: 26px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
    content: "";

    position: absolute;

    top: 12px;
    left: 2px;

    width: 22px;
    height: 2px;

    background: #d2d2d2;

    transition: background-color .2s ease;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after,
.lightbox-close:focus-visible::before,
.lightbox-close:focus-visible::after {
    background: white;
}

.lightbox-close:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}


/* Previous / next buttons */

.lightbox-navigation {
    position: absolute;

    top: 50%;

    width: 26px;
    height: 26px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    transform: translateY(-50%);

    cursor: pointer;
}

.lightbox-previous {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}


/*
 * Symmetrical V-shaped chevrons.
 * Both legs are identical.
 */

.lightbox-navigation::before {
    content: "";
    position: absolute;
    top: 7px;
    width: 11px;
    height: 11px;
    border-style: solid;
    border-color: #d2d2d2;
    border-width: 0 0 2px 2px;
    transition: border-color .2s ease;
}

.lightbox-previous::before {
    left: 7px;
    transform: rotate(45deg);
}

.lightbox-next::before {
    right: 7px;
    transform: rotate(225deg);
}

.lightbox-navigation::after {
    display: none;
}

.lightbox-navigation:hover::before,
.lightbox-navigation:focus-visible::before {
    border-color: white;
}


/* Image itself is clickable on desktop */

.lightbox-image-button {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.lightbox-image-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.lightbox-image-button:focus:not(:focus-visible) {
    outline: none;
}


/*
 * Small screens
 */

@media (max-width: 767px) {

    .lightbox-caption {
        font-size: 16px;
    }

    .lightbox-navigation {
        display: none;
    }

    .lightbox-image-button {
        cursor: default;
    }
}


/*
 * Short mobile landscape screens.
 *
 * The lightbox is calculated as if the viewport were
 * at least 460px high. The actual viewport can therefore
 * scroll vertically when the content is taller than the screen.
 */

@media (max-width: 767px) and (max-height: 459px) {

    .lightbox {
        align-items: flex-start;
        justify-content: center;

        overflow-y: auto;
    }
}

.lightbox-content.swipe-out-left {
    opacity: 0;
    transform: translateX(-100vw);
}

.lightbox-content.swipe-out-right {
    opacity: 0;
    transform: translateX(100vw);
}

/* WORKS PAGE */

.works-page {
    width: 100%;
}

.works-categories {
    width: calc(100% - 60px);
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.works-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 0 40px;
    color: #e1e1e1;
    text-decoration: none;
    opacity: 0;
    transition:
        opacity 0.7s ease,
        color 0.2s ease;
}

.works-category.is-visible {
    opacity: 1;
}

.works-category-image {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}

.works-category-title {
    margin-top: 15px;
    font-size: 1em;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

.works-category:hover,
.works-category:focus-visible {
    color: white;
}

.works-category:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}


/* DESKTOP */

@media (min-width: 768px) {

    .works-categories {
        width: calc(100% - 120px);
        margin: 60px auto 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: clamp(90px, 9.375vw, 180px);
    }

    .works-category {
        width: min(
            calc((100vw - 120px - clamp(90px, 9.375vw, 180px)) / 2),
            480px
        );
        max-width: 480px;
        margin-bottom: 40px;
    }

    .works-category-title {
        font-size: clamp(
            1em,
            1.25vw,
            1.5em
        );
    }
}


/* =========================================================
   ABOUT PAGE, PERSONAL EXHIBITION SPACE PAGE 
   ========================================================= */

.info-page {
    width: 100%;
}

.info-title {
    margin: 50px 0;
    color: white;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 767px) {
	.info-title {
		margin: 35px 0;
	}
}

.info-content {
    width: calc(100% - 60px);
    max-width: 1000px;
    margin: 0 auto;
}

.info-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}

.info-text {
    margin: clamp(
        35px,
        calc(35px + (100vw - 320px) * 0.9868),
        50px
    ) 0;
    color: white;
    font-size: clamp(
        1em,
        calc(1em + (100vw - 320px) * 0.01316),
        1.2em
    );
    line-height: 1.5;
    text-align: left;
}

.info-text p {
    margin: 0 0 1.5em;
}

.info-text p:last-child {
    margin-bottom: 0;
}


/* --------------------------------------------------
   About page on wider screens
-------------------------------------------------- */

@media (min-width: 768px) {

    .info-content {
        width: calc(100% - 120px);
    }

}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
    width: 100%;
}

.contact-title {
    margin: 50px 0;
    color: white;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 767px) {
	.contact-title {
		margin: 35px 0;
	}
}

.contact-content {
    width: calc(100% - 60px);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-image {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
}


/* --------------------------------------------------
   Contact blocks
-------------------------------------------------- */

.contact-blocks {
    display: flex;
    flex-direction: column;
    margin-top: 35px;
}


/* --------------------------------------------------
   Contact information
-------------------------------------------------- */

.contact-information {
    width: 100%;
    margin-bottom: 40px;
    color: white;
}

.contact-links {
    margin-bottom: 30px;
}

.contact-links a {
    display: flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 2px;

    color: white;
    text-decoration: none;
}

.contact-links a:last-child {
    margin-bottom: 0;
}

.contact-links img {
    display: block;
    width: auto;
    height: auto;
    margin-right: 10px;
}

.contact-links a:hover,
.contact-links a:focus-visible {
    color: white;
    text-decoration: underline;
}


.contact-paragraph {
    margin: 0 0 30px;
    line-height: 1.5;
}

.contact-paragraph-last {
    margin-bottom: 0;
}

.contact-heading {
    display: block;
    margin-bottom: 3px;
    font-size: 1.2em;
}

.contact-paragraph a {
    color: white;
    text-decoration: none;
}

.contact-paragraph a:hover,
.contact-paragraph a:focus-visible {
    text-decoration: underline;
}


/* --------------------------------------------------
   Subscribe block
-------------------------------------------------- */

.subscribe-block {
    width: 100%;
    max-width: 500px;
    margin: 0 0 40px;
    padding: 20px;
    box-sizing: border-box;

    border: 1px solid #d1d1d1;
}

.subscribe-form h2 {
    margin: 0 0 15px;

    color: white;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.4;
}

.subscribe-intro {
    margin: 0 0 30px;

    color: #bdbdbd;
    line-height: 1.5;
}

.subscribe-field {
    margin-bottom: 25px;
}

.subscribe-field label {
    display: block;
    margin-bottom: 6px;

    color: #bdbdbd;
}

.subscribe-field input {
    display: block;

    width: 100%;
    height: auto;

    padding: 10px;
    box-sizing: border-box;

    border: 1px solid #bdbdbd;
    border-radius: 0;

    background-color: #535353;
    color: white;

    font: inherit;
}

.subscribe-field input:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.subscribe-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.subscribe-submit button {
    padding: 25px 30px;

    border: 1px solid #bdbdbd;
    border-radius: 0;

    background: transparent;
    color: #bdbdbd;

    font: inherit;

    cursor: pointer;

    transition: color 0.2s ease;
}

.subscribe-submit button:hover,
.subscribe-submit button:focus-visible {
    color: white;
}

.subscribe-submit button:focus-visible {
    outline: 2px solid white;
    outline-offset: 4px;
}

.subscribe-footnote {
	font-size: 0.9em;
	font-style: italic;
	margin: 25px 0 0 0;
	text-align: right;
	color: #bdbdbd;
}
.subscribe-footnote a {
	text-decoration: none;
	color: #d4d4d4;
}
.subscribe-footnote a:hover {
	color: white;
}

/* --------------------------------------------------
   Contact page on wider screens
-------------------------------------------------- */

@media (min-width: 768px) {

    .contact-content {
        width: calc(100% - 120px);
    }

}


/* --------------------------------------------------
   Contact blocks side by side
-------------------------------------------------- */

@media (min-width: 900px) {

    .contact-blocks {
        flex-direction: row;
        align-items: flex-start;
        margin-top: 50px;
    }


    /*
     * Subscribe form appears first on desktop.
     */

    .subscribe-block {
        order: 1;

        width: 50%;
        max-width: none;

        margin: 0;
    }


    /*
     * Contact information appears second on desktop.
     *
     * The 90px left margin is included in the width
     * calculation so the two blocks remain inside
     * the 1000px container.
     */

    .contact-information {
        order: 2;

        width: calc(50% - 90px);
        margin: 0 0 40px 90px;
    }

}

.contact-confirmation {
    width: 100%;
    margin: 50px 0 40px;
    color: white;
    line-height: 1.5;
}

.contact-confirmation p {
    margin: 0 0 1.5em;
}

.contact-confirmation p:last-child {
    margin-bottom: 0;
}

.contact-confirmation a {
    color: white;
    text-decoration: none;
}

.contact-confirmation a:hover,
.contact-confirmation a:focus-visible {
    text-decoration: underline;
}

.subscribe-errors {
    margin: 0 0 25px;
    color: #ff4d4d;
    line-height: 1.5;
}

.subscribe-errors p {
    margin: 0 0 8px;
}

.subscribe-errors ul {
    margin: 0;
    padding-left: 20px;
}


/* =========================================================
   DATA POLICY PAGE
   ========================================================= */

.datapolicy-page {
    width: 100%;
}

.datapolicy-title {
    margin: clamp(
        35px,
        calc(35px + (100vw - 320px) * 0.9868),
        50px
    ) 30px;
    color: white;
    font-size: 1.5em;
    font-weight: normal;
    line-height: 1.2;
    text-align: center;
}

.datapolicy-content {
    width: calc(100% - 60px);
    max-width: 1000px;
    margin: 0 auto;
}



/* --------------------------------------------------
   Data Policy blocks
-------------------------------------------------- */


.datapolicy-blocks {
    display: flex;
    flex-direction: column;
    margin-top: 35px;
}

/* --------------------------------------------------
   Data Policy information
-------------------------------------------------- */

.datapolicy-information {
    width: 100%;
    margin-bottom: 40px;
    color: white;
}

@media (max-width: 899px) {
	.datapolicy-information {
		margin: 0;
	}
}

.datapolicy-paragraph {
    margin: 0 0 30px;
    line-height: 1.5;
	color: #dddddd;
}

.datapolicy-heading {
    display: block;
    margin-bottom: 3px;
    font-size: 1.2em;
}

/* --------------------------------------------------
   Data Policy page on wider screens
-------------------------------------------------- */

@media (min-width: 768px) {

    .datapolicy-content {
        width: calc(100% - 120px);
    }

}


/* --------------------------------------------------
   Data Policy blocks side by side
-------------------------------------------------- */

@media (min-width: 900px) {

    .datapolicy-blocks {
        flex-direction: row;
        align-items: flex-start;
        margin-top: 50px;
    }
	.datapolicy-information {
		padding:0 20px 0 20px;
	}
}





/* --------------------------------------------------
   MISCELLANEOUS
-------------------------------------------------- */

.bold-link {
	color: white;
	font-weight: bold;
	text-decoration: none;
}
.bold-link:hover {
	text-decoration: underline;
}