/* =====================================================
   1. CSS VARIABLES
===================================================== */
:root {
    /* ======================
       Base colors
    ====================== */
    --color-white: #ffffff;
    --color-black: #000000;

    /* ======================
       Theme colors
    ====================== */
    --color-light: #ffffff;
    --color-light-shade: #fafffd;
    --color-dark: #000000;

    /* ======================
       Neutral / overlays
    ====================== */
    --color-overlay-dark: rgba(0, 0, 0, 0.95);
    --color-shadow-dark: rgba(0, 0, 0, 0.2);

    /* ======================
       Social brand colors
    ====================== */
    --color-facebook: #3b5998;
    --color-instagram: #ff00d2;
    --color-tiktok: #ffcf00;

    /* ======================
       Typography
    ====================== */
    --font-body: 'Lato', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Lato', Georgia, 'Times New Roman', Times, serif;


    /* ======================
       Layout
    ====================== */
    --wrapper-width: 65rem;
    --flow-space: 1em;

    /* ======================
       Transitions
    ====================== */
    --transition-fast: 0.25s ease-out;
    --transition-medium: 0.4s ease;
}

.lato-regular {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
}

/* =====================================================
   2. BASE / RESET
===================================================== */
body {
    background: var(--color-dark);
    color: var(--color-dark);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.5;
}

a {
    color: currentColor;
    text-decoration: none;
}

textarea {
    resize: none;
}

main:focus {
    outline: none;
}


/* =====================================================
   3. TYPOGRAPHY
===================================================== */
h1,
h2 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    max-width: 30ch;
}

/* Mobile first */
h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
}

p,
li,
dl {
    max-width: 70ch;
}

article {
    margin-top: 2.5rem;
    font-size: 1.25rem;
}

.biography-container p {
    margin-bottom: 1.5rem;
}

.letter-spacing {
    letter-spacing: 2px;
}

.title-header {
    padding: 0.5em 0;
    color: var(--color-light-shade);
    text-transform: uppercase;
    letter-spacing: 6px;
}

/* Tablet and up */
@media (min-width: 40em) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}


/* =====================================================
   4. LAYOUT UTILITIES
===================================================== */
.wrapper {
    max-width: var(--wrapper-width);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.flow > * + * {
    margin-top: var(--flow-space);
}


/* =====================================================
   5. ACCESSIBILITY
===================================================== */
:focus {
    outline: 1px dotted currentColor;
    outline-offset: 0.2rem;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.7rem 1rem 0.5rem;
    background: var(--color-light-shade);
    color: var(--color-light-shade);
    font-weight: 700;
    text-transform: uppercase;
}

.skip-link:hover {
    background: var(--color-light-shade);
    color: var(--color-shadow-dark);
}

.skip-link:not(:focus) {
    clip: rect(0 0 0 0);
    width: 1px;
    white-space: nowrap;
    overflow: hidden;
}


/* =====================================================
   6. HEADER & NAVIGATION
===================================================== */
.site-head {
    padding: 0.6rem 0;
    background: var(--color-dark);
    line-height: 1.1;
}

.site-head :focus {
    outline-color: var(--color-dark);
}

.site-head__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0 1rem;
}

.site-head__brand {
    display: block;
}

.site-head__logo {
    width: 100%;
    height: auto;
    max-width: 400px;
}

/* Navigation */
.navigation ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.8rem;
    padding: 0;
}

.navigation li {
    margin: 0.1rem;
}

.navigation a {
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-light-shade);
}

/* Desktop layout */
@media (min-width: 64em) {
    .site-head__inner {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}


/* =====================================================
   7. BURGER MENU
===================================================== */
.burger-menu__trigger {
    display: none;
}

/* Burger icon */
.burger-menu__bar,
.burger-menu__bar::before,
.burger-menu__bar::after {
    width: 24px;
    height: 3px;
    background: var(--color-light-shade);
    position: absolute;
    left: 50%;
    margin-left: -12px;
    border-radius: 3px;
    transition: transform 350ms ease-in-out;
}

.burger-menu__bar {
    top: 50%;
    transform: translateY(-50%);
}

.burger-menu__bar::before,
.burger-menu__bar::after {
    content: '';
}

.burger-menu__bar::before {
    top: -8px;
}

.burger-menu__bar::after {
    bottom: -8px;
}

/* Mobile: burger enabled */
.burger-menu[enabled='true'] .burger-menu__trigger {
    display: block;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10000;
}

.burger-menu[enabled='true'] .burger-menu__panel {
    position: fixed;
    inset: 0;
    padding: 5rem 1.5rem 2rem;
    background: var(--color-dark);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
    z-index: 9999;
}

/* Mobile menu layout */
.burger-menu[enabled='true'] .navigation ul {
    display: block;
}

.burger-menu[enabled='true'] .navigation ul > * + * {
    margin-top: 2rem;
}

.burger-menu[enabled='true'] .navigation li {
    font-size: 1.5rem;
}

/* Open state */
.burger-menu[enabled='true'][status='open'] .burger-menu__panel {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--transition-medium);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar {
    background: transparent;
    transform: rotate(180deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::before {
    top: 0;
    transform: rotate(45deg);
}

.burger-menu[enabled='true'][status='open'] .burger-menu__bar::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Prevent scroll when menu is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


/* =====================================================
   8. ARTWORK GRID (MASONRY LAYOUT)
===================================================== */

/* Mobile first: 1 column */
#artwork-grid {
    column-count: 1;
    column-gap: 1rem;
    padding: 1rem 0;
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    display: inline-block;
    width: 100%;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-item img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--color-shadow-dark);
}

.artwork-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-light-shade);
    margin: 0.75rem 0 0 0;
    padding: 0 0.25rem;
    line-height: 1.3;
    text-align: center;
}

/* Tablet: 2 columns */
@media (min-width: 768px) {
    #artwork-grid {
        column-count: 2;
        column-gap: 1.25rem;
    }
}

/* Desktop: 3 columns */
@media (min-width: 1024px) {
    #artwork-grid {
        column-count: 3;
        column-gap: 1.5rem;
    }
}


/* =====================================================
   9. MODAL / LIGHTBOX
===================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10001;
    inset: 0;
    background-color: var(--color-overlay-dark);
    overflow: auto;
    padding: 2rem 1rem;
}

/* Hide header when modal is open */
body.modal-open .site-head {
    display: none;
}

.modal-content {
    display: block;
    margin: 0 auto;
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: var(--color-light-shade);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

/*.modal-close:hover,*/
/*.modal-close:focus {*/
/*    color: var(--color-primary);*/
/*}*/

/* Modal caption */
.modal-caption {
    max-width: 700px;
    margin: 2rem auto 0;
    color: var(--color-light-shade);
    padding: 0 1rem;
}

.modal-caption h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-light-shade);
    text-align: center;
}

.modal-caption p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.modal-caption .art-description {
    opacity: 0.7;
    text-align: center;
    font-style: italic;
    font-weight: normal;
}

.modal-caption .artwork-size {
    opacity: 0.7;
    font-style: italic;
    font-weight: normal;
}

.modal-caption .modal-date {
    opacity: 0.7;
    text-align: right;
}

.modal-caption .private-collection {
    opacity: 0.9;
    font-weight: normal;
}

/* Responsive modal */
@media (min-width: 768px) {
    .modal-content {
        max-height: 75vh;
    }

    .modal-caption h2 {
        font-size: 2.5rem;
    }
}


/* =====================================================
   10. SOCIAL BUTTONS
===================================================== */
.rounded-social-buttons {
    text-align: center;
}

.rounded-social-buttons .social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    color: var(--color-dark);
    font-size: 1rem;
    margin-right: 0.25rem;
    margin-top: 1rem;
    margin-bottom: 1em;
    transition: transform 0.5s ease, background-color 0.3s ease;
}

.social-button.facebook {
    background-color: var(--color-light-shade);
    /*color: var(--color-light-shade);*/
}

.social-button.instagram {
    background-color: var(--color-light-shade);
}

.social-button.tiktok {
    background-color: var(--color-light-shade);
}

.rounded-social-buttons .social-button:hover {
    background-color: var(--color-white);
}

/* Hover effects */
.rounded-social-buttons .social-button:hover {
    transform: rotate(360deg);
    background-color: #ffffff;
}

.rounded-social-buttons .social-button:hover i {
    color: currentColor;
}

.social-button.facebook:hover {
    color: var(--color-facebook);
}

.social-button.instagram:hover {
    color: var(--color-instagram);
}

.social-button.tiktok:hover {
    color: var(--color-tiktok);
}


/* =====================================================
   11. EFFECTS & UTILITIES
===================================================== */
.hover-underline-animation {
    position: relative;
    display: inline-block;
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -0.2em;
    height: 0.1em;
    background: var(--color-light-shade);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-fast);
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
}
.profile-photo {
    border-radius: 0.2em;
    /*border-radius: 50em;*/
    -webkit-box-shadow: 6px 7px 14px 4px rgba(255,255,255,0.32);
    box-shadow: 6px 7px 14px 4px rgba(255,255,255,0.32);
}

