/* ==========================================================================
   1. VARIABLES & THEMES
   ========================================================================== */
:root {
    /* Colors */
    --color-black: #111111;
    --color-black-transparent: #111111a2;
    --color-dark-main: #162633;
    --color-dark-sec: #222222;
    --color-gray-dark: #333333;
    
    --color-light-main: #f4f4f4;
    --color-light-sec: #cccccc;
    --color-white: #ffffff;
    --color-text-on-dark: #f0f0f0;
    --color-text-light-on-dark: #cfcfcf;
    --color-text-on-light: #222222;
    --color-text-light-on-light: #444444;
    
    --color-accent: #fffec7;
    --color-accent-on-light: #162633;

    /* Layout */
    --nav-height: 60px;

    /* Header */
    --header-bg: #162633;
    --header-bg-transparent: #162633a2;
    --header-text: #ffffff;
    --dropdown-bg: var(--color-dark-sec);
    --dropdown-hover: var(--color-gray-dark);
    --dropdown-border: var(--color-accent);
}

.theme-dark {
    --bg-current: #3A4856;
    --text-current: var(--color-text-on-dark);
    --text-light: var(--color-text-light-on-dark);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: var(--color-gray-dark);
    --box-bg: #162633;
    --box-text: #e5e7eb;

    background-color: var(--bg-current);
    color: var(--text-current);
}

.theme-light {
    --bg-current: #e8e8e8;
    --text-current: #162633;
    --text-light: var(--color-text-light-on-light);
    --card-bg: rgba(0, 0, 0, 0.05);
    --card-border: var(--color-light-sec);
    --box-bg: #162633;
    --box-text: #e5e7eb;
    
    background-color: var(--bg-current);
    color: var(--text-current);
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    height: 100%;
    overflow-y: scroll;
}

@media (min-width: 768px) {
    html.snap-mandatory { 
        scroll-snap-type: y mandatory; 
    }
    
    html.snap-proximity { 
        scroll-snap-type: y proximity; 
    }

    .scroll-snap--start {    
        scroll-snap-align: start; 
        scroll-snap-stop: normal;
    }

    .scroll-snap--end {    
        scroll-snap-align: end; 
        scroll-snap-stop: normal;
    }
}

body {
    margin: 0;
    padding-top: var(--nav-height); 
    background-color: var(--color-dark-main);
    color: var(--color-text-on-dark);
    font-family: sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

body.modal-open {
    overscroll-behavior: contain;
}

*, *::before, *::after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

h1 {
    font-family: "Cinzel", serif;
}

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

.theme-light h1 { color: #162633; }
.theme-light a:not(.button) { 
    color: var(--color-accent-on-light); 
    text-decoration: underline;
}
.theme-light a:hover:not(.button) { color: #2e516d; }

.text-light {
    color: var(--text-light);
    font-weight: normal;
}

.comment {
    color: var(--color-accent);
    font-size: 0.75em;
    font-style: italic;
    margin: 0;
}

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.section {
    width: 100%;
    box-sizing: border-box;
    padding: 2rem 1rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section--fullscreen {
    /*min-height: calc(100vh - var(--nav-height));*/
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .section--fullscreen {
        min-height: calc(100vh - var(--nav-height));
    }
}

.section--flexible {
    flex: 1;
    justify-content: center;
}

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */
/* --- Header / Nav --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transform: translateY(0) translateZ(0);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.header--hidden {
    transform: translateY(-100%) translateZ(0);
}

.header--transparent {
    background-color: var(--header-bg-transparent);
    box-shadow: none;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.header--transparent:hover {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav__page-container {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 15px; 
    margin: 0;
    padding: 0;
    text-align: center;
    pointer-events: none;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav__dynamic-label {
    font-size: 0.65rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: normal;
    
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav__dynamic-label.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.nav__logo {
    height: 100%;
    padding: 5px;
    display: flex;
    align-items: center;
}

.nav__logo a, .nav__logo-img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.nav__item {
    position: relative;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 1;
}

.nav__item.is-dimmed { opacity: 0.3; }

.nav__link {
    text-decoration: none;
    color: var(--header-text);
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav__link.is-hover,
.nav__link.is-active {
    color: var(--color-accent);
}

/* --- Dropdown --- */
.dropdown {
    position: absolute;
    top: var(--nav-height);
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    background-color: var(--dropdown-bg);
    border-top: 2px solid var(--dropdown-border);
    min-width: 150px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 1100;
}

@media (max-width: 767px) {
    .dropdown.is-visible {
        display: block !important;
    }
}

.dropdown__list { list-style: none; padding: 0; margin: 0; }

.dropdown__link {
    display: block;
    padding: 8px 15px;
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown__link:hover { 
    background-color: var(--dropdown-hover);
    color: var(--color-white); 
}

@media (max-width: 767px) {
    .dropdown__link--hide-from-mobile {
        display: none;
    }
}


/* --- Mobile nav --- */
.nav__toggle {
    display: block; 
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.nav__toggle-icon, 
.nav__toggle-icon::before, 
.nav__toggle-icon::after {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--header-text);
    transition: all 0.3s ease;
    position: relative;
}

.nav__toggle-icon::before, 
.nav__toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav__toggle-icon::before { top: -8px; }
.nav__toggle-icon::after { bottom: -8px; }

.nav__toggle.is-open .nav__toggle-icon { background-color: transparent; }
.nav__toggle.is-open .nav__toggle-icon::before { transform: rotate(45deg); top: 0; }
.nav__toggle.is-open .nav__toggle-icon::after { transform: rotate(-45deg); bottom: 0; }

@media (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 90%;
        height: 100vh;
        overflow-y: auto;
        margin:0;
        padding: 60px 0;
        background-color: var(--color-dark-main);
        flex-direction: column; 
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav__menu.is-open {
        right: 0;
    }

    .nav__item {
        flex-direction: column; 
        height: auto;
        padding: 6px 0;
        align-items: center;
    }

    .nav__link {
        font-size: 1.5rem; 
    }

    .dropdown {
        display: block !important; 
        position: static; 
        transform: none;
        box-shadow: none;
        background: transparent;
        width: 100%;
        text-align: center;
        padding: 3px 0 0 0;
        border-top: none; 
    }

    .dropdown__list {
        display: flex;
        flex-direction: column;
    }

    .dropdown__link {
        font-size: 1.4rem;
        color: var(--color-text-light-on-dark);
        padding: 0 0 5px 0;
        opacity: 0.8;
    }

    .nav__dynamic-label.is-visible {
        display: none;
    }
}

@media (min-width: 768px) {
    .nav__toggle {
        display: none;
    }

    .nav__menu {
        display: flex;
        position: static;
        width: auto;
        height: 100%;
        background: none;
        box-shadow: none;
        flex-direction: row;
    }
}

/* --- Hero Section --- */
.hero {
    padding: 0; 
    margin-top: calc(var(--nav-height) * -1);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative; 
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.hero__panning-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__panning-img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: 50% 50%; 
    transform-origin: center center;
    transition: object-position 0.5s ease;
}

.hero__content-fixer {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    text-shadow: 0px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero__title {
    margin: 0;
    padding: 1rem 6rem; 
    background-color: rgba(17, 17, 17, 0.6); 
    backdrop-filter: blur(8px); 
    border-radius: 2px; 
    border-left: 6px solid var(--color-accent); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero__title h1 {
    font-size: 4rem;
    font-family: "Cinzel", serif;
    font-weight: normal;
    font-style: normal;
    margin: 0;
}

.hero__title h3 {
    font-size: 1rem;
    font-weight: normal;
    font-style: normal;
    margin: 0;
}

.hero__subtitle {
    margin-top: 1.5rem;
    font-style: italic; 
    background-color: transparent;
    opacity: 0.9;
    animation: scroll-down-animation 2s ease-in-out infinite;
}

.hero__mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-current);
    border-radius: 20px;
    margin-bottom: 10px;
    position: relative;
}

.hero__mouse::before {
    content: "";
    width: 4px;
    height: 8px;
    background-color: var(--text-current);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;
    border-radius: 2px;
    animation: wheel-move 2s infinite;
}

@media (max-width: 767px) {
    .hero__panning-img {
        animation: hero-pan-diagonal 40s ease-out infinite alternate;
    }
    
    .hero__title {
        padding: 1rem 2rem; 
    }
    .hero__title h1 {
        font-size: 2.5rem;
    }
}

/* --- Map --- */
.responsive-map {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-height: 250px; 
    border: none;
    border-radius: 8px;
    background-color: #111;
    overflow: hidden;
    position: relative;
    transition: opacity 0.3s ease;
}

.responsive-map:hover {
    opacity: 0.6;
}

.responsive-map::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.responsive-map::after {
    content: attr(title);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(10px); 
    z-index: 2;

    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    opacity: 0;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.responsive-map:hover::before {
    opacity: 1;
}

.responsive-map:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

@media (max-width: 767px) {
    .responsive-map::after {
        font-size: 0.5rem;
    }
}

.responsive-map__img {
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
    
    object-fit: cover; 
    object-position: center center; 
}

@media (max-width: 768px) {
    .responsive-map__img {
        transform: scale(1.5);
    }
}

/* --- Artist Grid & Card --- */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    max-width: 1200px;
}

.artist-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 2rem;
    text-align: center;
}

/* --- Gallery --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1.5rem;
    width: 100%;
    padding: 1rem;
}

.gallery__item {
    position: relative;
    width: 100%;
    border-radius: 8px; 
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
    opacity: 0;
    animation: gallery-item-fadeUp 0.7s ease-out 0.3s forwards;
}

.gallery__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.gallery__info {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 12px;
    text-align: center;
    font-size: 0.9rem;
    backdrop-filter: blur(4px);
    transition: bottom 0.2s ease-in-out; 
}

.gallery__item:hover .gallery__info {
    bottom: 0;
    transition-delay: 0.4s;
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr); 
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery__info  {
        display:none;
    }
}

/* --- Artist Showcase --- */
.artist-showcase {
    width: 100%;
}

.artist-showcase__trigger {
    color: #e5e7eb;
    text-align: center;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.4s ease;
    user-select: none;
    position: relative;
    z-index: 2;
}

.artist-showcase__trigger h1 {
    font-family: "Cinzel", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 3em;
    margin: 0;
}

.artist-showcase__trigger p {
    margin: 0;
    font-style: italic;
    font-weight: lighter;
    font-size: 0.875em;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.artist-showcase__trigger:hover h1 {
    color: var(--color-accent);
}

.artist-showcase__trigger:hover p {
    opacity: 1;
}

.artist-showcase__trigger[data-artist="viki"] {
    margin-right: -200px;
}

.artist-showcase__trigger[data-artist="greti"] {
    margin-left: -200px; 
}

.artist-showcase__gallery {
    z-index: 1;
    position: relative;
    max-width: 60%;
}

.artist-showcase__image--base {
    display: block;
    width: 100%;
    max-width: 600px;
    max-height: 70vh;
    height: auto;
    margin: 0 auto;
}

.artist-showcase__image--fade {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    opacity: 0;
    transition: opacity 0.4s ease;
}

.artist-showcase:has(.artist-showcase__trigger[data-artist="viki"]:hover) img[data-artist="viki"],
.artist-showcase:has(.artist-showcase__trigger[data-artist="greti"]:hover) img[data-artist="greti"] {
    opacity: 1;
}

.artist-showcase:has(.artist-showcase__trigger[data-artist="viki"]:hover) .artist-showcase__trigger[data-artist="greti"],
.artist-showcase:has(.artist-showcase__trigger[data-artist="greti"]:hover) .artist-showcase__trigger[data-artist="viki"] {
    opacity: 0;
}

.artist-showcase__triggers--on-mobile {
    display: none;
}

.artist-showcase__triggers--on-mobile a {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/*.artist-showcase__trigger p {
    display: none;
}*/

@media (max-width: 768px) {
    .artist-showcase__gallery {
        width: 100%;
        max-width: 100%;
        align-items: center;
    }

    .artist-showcase__image--base {
        width: auto;
        max-width: 100%;
        max-height: 50vh;
    }

    .artist-showcase__image--fade {
        display: none; 
    }

    /*.artist-showcase__trigger {
        padding: 10px;
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        width: 100%;
        box-sizing: border-box;
    }*/

    .artist-showcase__trigger {
        display: none;
    }

    .artist-showcase__trigger h1 {
        display: none;
    }

    .artist-showcase__trigger p {
        display: none;
    }

    .artist-showcase__triggers--on-mobile {
        display: block;
    }
}

/* --- Artist Profile --- */
.artist-profile__info__image {
    display: block;
    width: 100%;
    max-width: 600px;
    max-height: 50vh;
    height: auto;
    margin: 0 auto;
}

.artist-profile__info__name h1 {
    font-family: "Cinzel", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 3em;
}

.artist-profile__introduction {
    overflow: hidden;
    background-color: #162633;
    color: #e5e7eb;
    margin: 0 1rem 0 2rem;
    padding: 1rem 2rem;
    border-radius: 8px;
}

.artist-profile__introduction h4 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .artist-profile__introduction {
        margin: 0;
    }
}

/* --- Carousel --- */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: carousel-scroll var(--scroll-speed, 45s) linear infinite;
}

.carousel-track__card {
    flex: 0 0 auto;
    max-height: 15vh;
    width: auto;
    display: flex;
    border-radius: 20px;
    margin: 0 10px;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* --- Buttons --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px 10px 24px;
    font-family: inherit;
    font-size: 0.875rem;
    color: #ffffff;
    background-color: #162633; 
    border: none;
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    color: var(--color-accent); 
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.button--light { background-color: #2e516d; }
.button--expand { width: 100%; }

.button--accent {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    color: var(--color-white);
}

.button--accent:hover {
    filter: brightness(1.1);
}

.button--icon {
    padding-left: 56px;
    background-size: 24px;
    background-repeat: no-repeat;
    background-position: 16px center; 
}

.button--icon-back { background-image: url('../img/back-24dp.svg'); }
.button--icon-instagram { background-image: url('../img/instagram-logo.svg'); }
.button--icon-portfolio { background-image: url('../img/art-track-24dp.svg'); }
.button--icon-mail { background-image: url('../img/mail-24dp.svg'); }

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 10;
    background-color: #162633;
    color: #9ca3af;
    padding: 0 1rem 1rem;
    font-size: 0.9rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

.footer__grid {
    display: flex;
    flex-direction: column; 
    gap: 2rem;
    align-items: center;
    text-align: center;
    padding-bottom: 1.5rem;
}

.footer__column h4 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__list li { margin-bottom: 0.5rem; }
.footer__link { transition: color 0.3s ease; }
.footer__link:hover { color: #fff; }
.footer__logo { max-height: 150px; width: auto; }

.footer__copyright {
    padding: 1rem;
    border-top: 1px solid #9ca3af;
    text-align: center;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer__grid {
        flex-direction: row; 
        justify-content: space-between; 
        align-items: stretch; 
    }
    .footer__column { flex: 1; }
    .footer__column--left { text-align: left; }
    .footer__column--center { text-align: center; }
    .footer__column--right { text-align: right; }
}

/* --- Overlap & Guide Components --- */
.overlap {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0;
    padding: 0 1rem;
}

.overlap__image {
    width: 100%;
    z-index: 2;
    position: relative;
}

.overlap__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.4);
}

.overlap__content {
    background-color: #162633;
    color: #e5e7eb;
    padding: 1.2rem;
    border-radius: 8px;
    z-index: 1;
    position: relative;
    margin-top: -2rem; 
}

.overlap__content h1 { color: var(--color-accent); margin-bottom: 0; }
.overlap__content h2 { margin: 0; }

@media (min-width: 768px) {
    .overlap {
        display: grid;
        margin: 4rem auto;
        grid-template-columns: repeat(12, 1fr);
        align-items: flex-start; 
    }
    .overlap__image {
        grid-column: 1 / 6; 
        grid-row: 1;
        transform: translateY(-40px);
    }
    .overlap__content {
        grid-column: 4 / 13; 
        grid-row: 1;
        padding: 1rem 3rem 2rem 30%;
        transform: translateY(20px);
    }
}

.guide {
    background-color: var(--box-bg);
    color: var(--box-text);
    padding: 2rem;
    border-radius: 8px;
    margin: 0 0 2rem 0; 
}

.guide h1, .guide h2, .guide h3, .guide h4 { color: var(--color-accent); margin: 1rem 0; }
.guide h1 { margin-bottom: 1rem; }
.guide p { margin: 0 0 0.5rem 0; }

@media (max-width: 768px) {
    .guide {
        margin: 0;
    }

    .guide h1 {
        font-size: 1.5rem;
        margin-top: 0;
    }

    .guide p {
        font-size: 0.875rem;
    }
}

/* --- Contact page --- */
.contacts {
    padding: 0;
    margin: 0 0 2rem 0; 
}

.contacts h1, .contacts h2, .contacts h3, .contacts h4 { margin: 1rem 0; }
.contacts p { margin: 0 0 0.5rem 0; }

/* --- Modal --- */
.modal-dialog {
    padding: 0;
    border: none;
    border-radius: 12px;
    background-color: #1a1a1a;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden; 
    width: 320px; 
    height: fit-content; 
    max-width: 90vw;
    max-height: 90vh;
    opacity: 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: modal-fade-in 0.3s ease-out forwards;
}

.modal-dialog.is-loaded { width: fit-content; }
.modal-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-dialog__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    gap: 20px;
    height: fit-content;
}
.modal-dialog.is-loaded .modal-dialog__loader { display: none; }

.modal-dialog__content {
    display: none;
    flex-direction: row;
    max-height: 90vh; 
}
.modal-dialog.is-loaded .modal-dialog__content {
    display: flex;
    animation: content-fade-in 0.5s ease forwards;
}

.modal-dialog__close {
    position: absolute; top: 15px; right: 20px;
    background: rgba(0,0,0,0.5); border: none; color: white;
    font-size: 30px; cursor: pointer; z-index: 10;
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.modal-dialog__close:hover { background: rgba(0,0,0,0.8); }

.modal-dialog__image-area {
    display: flex; align-items: center; justify-content: center; background-color: #000;
}

.modal-dialog__img {
    max-width: calc(90vw - 350px); max-height: 90vh;
    width: auto; height: auto; display: block;
}

.modal-dialog__sidebar {
    width: 350px; flex-shrink: 0; background-color: #222;
    display: flex; flex-direction: column;
}
.modal-dialog__sidebar__header { padding: 20px; border-bottom: 1px solid #333; }
.modal-dialog__sidebar__header h3 { margin: 0; font-size: 1.2rem; }
.modal-dialog__sidebar__body { padding: 20px; overflow-y: auto; flex-grow: 1; }

@media (max-width: 768px) {
    .modal-dialog__content  { flex-direction: column; }
    .modal-dialog__img { max-width: 90vw; max-height: 50vh; }
    .modal-dialog__sidebar  { width: 100%; max-height: 40vh; }
}

/* ==========================================================================
   6. UTILITIES
   ========================================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; height: 100%; }
.flex-row { flex-direction: row; width: 100%; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-none { flex: none; } 
.flex-wauto { width: auto; }

.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }

.align-center  { align-items: center; }
.align-stretch { align-items: stretch; }
.align-start   { align-items: flex-start; }
.align-end     { align-items: end; }

.gap-0 { gap: 0; }
.gap-10 { gap: 10px; }
.gap-15 { gap: 15px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.grid-layout {
    display: grid;
    grid-template-columns: 1fr; 
    width: 100%;
}
@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
}
.map-column {
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.progressive-blur { transition: filter 0.6s ease-in-out; filter: blur(0); }
.progressive-blur.is-blurred { filter: blur(8px); }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:flex-col { flex-direction: column; }
    .md\:align-center  { align-items: center; }
    .md\:align-stretch { align-items: stretch; }
    .md\:align-start   { align-items: flex-start; }
    .md\:align-end     { align-items: end; }
}

/* ==========================================================================
   7. ANIMATIONS
   ========================================================================== */
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes slide-from-right { from { transform: translateX(90px); } }
@keyframes slide-from-left { from { transform: translateX(-90px); } }
@keyframes slide-to-left { to { transform: translateX(-90px); } }
@keyframes slide-to-right { to { transform: translateX(90px); } }
@keyframes scroll-down-animation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}
@keyframes hero-pan-diagonal {
    from {
        object-position: 75% 100%;
    }
    to {
        object-position: 0% 100%;
    }
}
@keyframes wheel-move {
    0% { top: 10px; opacity: 1; }
    100% { top: 25px; opacity: 0; }
}
@keyframes gallery-item-fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes spinner { to { transform: rotate(360deg); } }
@keyframes modal-fade-in {
    from { opacity: 0; transform: scale(0.95) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes content-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes carousel-scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }

::view-transition-old(slide-it) {
    animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}
::view-transition-new(slide-it) {
    animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}
html:has(#artists.slide-right)::view-transition-old(slide-it) {
    animation: 180ms cubic-bezier(0.4, 0, 1, 1) both fade-out,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-right;
}
html:has(#artists.slide-right)::view-transition-new(slide-it) {
    animation: 420ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in,
    600ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-left;
}
.content-swap-transition { view-transition-name: slide-it; }