/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-neutral-50: #fafafa;
    --color-neutral-100: #f5f5f5;
    --color-neutral-200: #e5e5e5;
    --color-neutral-300: #d4d4d4;
    --color-neutral-400: #a3a3a3;
    --color-neutral-500: #737373;
    --color-neutral-600: #525252;
    --color-neutral-800: #262626;
    --color-neutral-900: #171717;
    --color-blue-700: #1d4ed8;
    --color-blue-800: #1e40af;
    --color-blue-900: #1e3a8a;
    --color-white: #ffffff;
    --color-black: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-white);
    color: var(--color-neutral-900);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.font-serif-kr {
    font-family: 'Noto Serif KR', serif;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 40;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-neutral-100);
    transition: all 0.5s;
}

@media (min-width: 768px) {
    .header {
        padding: 1.25rem 3rem;
    }
}

.header-logo {
    font-size: 1.5rem;
    font-family: 'Noto Serif KR', serif;
    font-weight: 700;
    color: var(--color-neutral-900);
    cursor: pointer;
    user-select: none;
    letter-spacing: -0.05em;
    transition: opacity 0.5s;
}

.header-logo:hover {
    opacity: 0.7;
}

@media (min-width: 768px) {
    .header-logo {
        font-size: 2rem;
    }
}

.header-nav {
    display: flex;
    gap: 2rem;
}

@media (min-width: 768px) {
    .header-nav {
        gap: 3rem;
    }
}

.nav-link {
    position: relative;
    cursor: pointer;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: color 0.3s;
    color: var(--color-neutral-400);
}

.nav-link:hover {
    color: var(--color-black);
}

.nav-link.active {
    color: var(--color-blue-900);
    font-weight: 500;
}

.nav-underline {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background-color: var(--color-blue-800);
    width: 0;
    transition: width 0.3s ease-out;
}

.nav-link.active .nav-underline {
    width: 100%;
}

.nav-link:hover .nav-underline {
    width: 100%;
}

/* Main Content */
.main-content {
    width: 100%;
    margin: 0 auto;
    max-width: 1600px;
    padding: 0 2rem;
}

@media (max-width: 767px) {
    .main-content {
        padding: 0 1rem;
    }
}

.view-container {
    width: 100%;
    animation: fadeInView 0.5s ease-in;
}

/* Gallery */
.gallery-container {
    width: 100%;
    margin: 0 auto;
    padding: 7rem 0.75rem 1.5rem;
}

@media (min-width: 768px) {
    .gallery-container {
        padding: 8rem 2rem 2rem;
    }
}

#gallery-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    #gallery-sections {
        gap: 3rem;
    }
}

.gallery-section {
    width: 100%;
}

.gallery-section-header {
    margin-bottom: 1rem;
}

.gallery-section-title {
    font-family: 'Noto Serif KR', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-neutral-900);
    padding-left: 0.5rem;
}

@media (min-width: 768px) {
    .gallery-section-title {
        font-size: 1.5rem;
    }
}

.gallery-scroll-wrapper {
    position: relative;
    width: 100%;
}

@media (min-width: 768px) {
    .gallery-scroll-wrapper {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.gallery-scroll-container {
    width: 100%;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .gallery-scroll-container {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--color-neutral-300) transparent;
    }
}

@media (min-width: 768px) {
    .gallery-scroll-container::-webkit-scrollbar {
        height: 6px;
    }

    .gallery-scroll-container::-webkit-scrollbar-track {
        background: transparent;
    }

    .gallery-scroll-container::-webkit-scrollbar-thumb {
        background-color: var(--color-neutral-300);
        border-radius: 3px;
    }

    .gallery-scroll-container::-webkit-scrollbar-thumb:hover {
        background-color: var(--color-neutral-400);
    }
}

.gallery-scroll-btn {
    display: none;
}

@media (min-width: 768px) {
    .gallery-scroll-btn {
        display: flex;
        background: none;
        border: none;
        padding: 0.5rem;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--color-neutral-600);
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .gallery-scroll-btn:hover {
        color: var(--color-neutral-900);
    }

    .gallery-scroll-btn:active {
        transform: scale(0.9);
    }

    .gallery-scroll-btn svg {
        width: 2rem;
        height: 2rem;
    }
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .gallery-row {
        display: flex;
        gap: 1.25rem;
        padding: 0 1rem;
    }
}

.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

@media (min-width: 768px) {
    .gallery-item {
        flex: 0 0 auto;
        width: 28vw;
        max-width: 350px;
        scroll-snap-align: start;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        width: 25vw;
        max-width: 380px;
    }
}

.gallery-item:nth-child(1) { animation-delay: 0ms; }
.gallery-item:nth-child(2) { animation-delay: 100ms; }
.gallery-item:nth-child(3) { animation-delay: 200ms; }
.gallery-item:nth-child(4) { animation-delay: 300ms; }
.gallery-item:nth-child(5) { animation-delay: 400ms; }
.gallery-item:nth-child(6) { animation-delay: 500ms; }
.gallery-item:nth-child(7) { animation-delay: 600ms; }
.gallery-item:nth-child(8) { animation-delay: 700ms; }
.gallery-item:nth-child(9) { animation-delay: 800ms; }
.gallery-item:nth-child(10) { animation-delay: 900ms; }

.gallery-item-image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 3 / 4;
    background-color: var(--color-white);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: opacity 0.3s ease-out, transform 0.7s ease-out, filter 0.7s ease-out;
    filter: grayscale(0%);
    background-color: var(--color-white);
    opacity: 0;
}

@media (min-width: 768px) {
    .gallery-item img {
        filter: grayscale(0%);
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(30, 58, 138, 0);
    transition: background-color 0.5s;
    pointer-events: none;
}

.gallery-item:hover .gallery-item-overlay {
    background-color: rgba(30, 58, 138, 0.1);
}

.gallery-item-info {
    position: absolute;
    inset: 0;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.5s;
    transform: translateY(1rem);
}

.gallery-item:hover .gallery-item-info {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item-info-box {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.5s ease-out;
}

.gallery-item:hover .gallery-item-info-box {
    transform: translateY(0);
}

.gallery-item-category {
    display: block;
    font-size: 0.75rem;
    color: var(--color-neutral-400);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.gallery-item-title {
    display: block;
    font-size: 0.875rem;
    color: var(--color-black);
    font-family: 'Noto Serif KR', serif;
}

/* About Page */
.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 7rem 1.5rem 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-container {
        padding: 8rem 2rem 2.5rem;
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        justify-content: center;
    }
}

.about-image-wrapper {
    width: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 100ms forwards;
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .about-image-wrapper {
        width: 33.333333%;
        justify-content: center;
    }
}

.about-image-container {
    aspect-ratio: 3 / 4;
    width: 100%;
    background-color: var(--color-neutral-100);
    overflow: hidden;
    position: relative;
}

.about-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: grayscale(0%) contrast(125%);
    transition: transform 1s;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-image-ring {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.about-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 300ms forwards;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        width: 50%;
        align-items: center;
    }
}

.about-header {
    border-bottom: 1px solid var(--color-neutral-100);
    padding-bottom: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-title {
    font-size: 1.875rem;
    font-family: 'Noto Serif KR', serif;
    color: var(--color-black);
    margin-bottom: 0.75rem;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .about-title {
        font-size: 1.5rem;
    }
}

.about-name {
    font-size: inherit;
    font-weight: 600;
    line-height: 1.15;
}

.about-name-en {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--color-neutral-400);
    font-weight: 300;
    margin-left: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.about-date {
    font-size: 0.875rem;
    color: var(--color-neutral-400);
    font-family: monospace;
    letter-spacing: 0.15em;
}

.about-quote {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-quote p {
    font-family: 'Noto Serif KR', serif;
    color: var(--color-neutral-600);
    text-align: center;
    font-style: italic;
    line-height: 1.75;
    font-size: 0.9375rem;
}

.quote-second-line {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .about-quote p br.mobile-only {
        display: block;
        line-height: 1.2;
    }
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: var(--color-neutral-800);
    line-height: 1.75;
    font-weight: 300;
    font-size: 0.875rem;
    align-items: center;
}

.about-text p {
    word-break: normal;
    overflow-wrap: break-word;
}

.about-text-kr,
.about-text-jp {
    text-align: center;
    max-width: 40rem;
    width: 100%;
}

.about-text-kr {
    word-break: normal;
    overflow-wrap: break-word;
}

@media (max-width: 767px) {
    .about-text-kr,
    .about-text-jp {
        padding: 0 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }
}

.text-line {
    display: block;
    word-break: normal;
    overflow-wrap: break-word;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .about-text p br.mobile-only {
        display: block;
        line-height: 1.2;
        margin: 0;
        height: 0;
    }
    
    .text-line {
        display: block;
        word-break: normal;
        overflow-wrap: break-word;
    }
}

@media (min-width: 768px) {
    .about-text {
        font-size: 0.9375rem;
    }
    
    .mobile-only {
        display: none;
    }
    
    .text-line {
        display: block;
    }
    
    .about-text p br {
        display: block;
        line-height: 1.75;
    }
}

.about-text-jp {
    color: var(--color-neutral-800);
    line-height: 1.75;
    word-break: normal;
    overflow-wrap: normal;
    line-break: loose;
    word-wrap: normal;
}

.no-break {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .about-text-jp .text-line {
        word-break: normal;
        overflow-wrap: normal;
        line-break: loose;
        word-wrap: normal;
    }
    
    .about-text-jp {
        word-break: normal;
        overflow-wrap: normal;
        line-break: loose;
    }
    
    .about-text-jp .no-break {
        white-space: nowrap;
        display: inline;
    }
    
    .about-text {
        padding: 0;
    }
}

.about-contact-list {
    padding-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.about-contact-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--color-neutral-800);
    align-items: center;
}

.about-contact-list li {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: color 0.3s;
}

.about-contact-list li:hover {
    color: var(--color-blue-900);
}

.contact-icon {
    width: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-neutral-400);
    transition: color 0.3s;
}

.about-contact-list li:hover .contact-icon {
    color: var(--color-blue-900);
}

.contact-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.about-contact-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.about-contact-list a:hover {
    color: var(--color-blue-900);
}

/* Contact Page */
.contact-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .contact-container {
        padding: 7rem 2rem 3rem;
    }
}

.contact-header {
    max-width: 32rem;
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.contact-title {
    font-size: 1.875rem;
    font-family: 'Noto Serif KR', serif;
    margin-bottom: 1rem;
    text-align: center;
}

.contact-subtitle {
    color: var(--color-neutral-500);
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
}

.contact-email {
    display: block;
    margin-top: 1rem;
    color: var(--color-blue-900);
    text-decoration: none;
    transition: color 0.3s;
    text-align: center;
}

.contact-email:hover {
    color: var(--color-black);
}

.contact-form {
    max-width: 32rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 200ms forwards;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

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

.form-group {
    position: relative;
    padding-top: 1.5rem;
    width: 100%;
}

.form-label {
    position: absolute;
    left: 0;
    top: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-neutral-400);
    transition: all 0.3s;
    pointer-events: none;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--color-neutral-200);
    padding: 0.5rem 0;
    outline: none;
    background-color: transparent;
    color: var(--color-black);
    transition: border-color 0.3s;
    font-family: inherit;
    font-size: 1rem;
    position: relative;
    z-index: 10;
}

.form-input:focus {
    border-bottom-color: var(--color-blue-900);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 0;
    font-size: 0.625rem;
    color: var(--color-blue-900);
}

.form-textarea {
    resize: none;
}

.form-submit-wrapper {
    padding-top: 2rem;
    text-align: center;
}

.form-submit-btn {
    padding: 0.75rem 3rem;
    background-color: var(--color-neutral-900);
    color: var(--color-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-submit-btn:hover {
    background-color: var(--color-blue-900);
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--color-neutral-50);
    margin-top: 1rem;
}

.footer-text {
    font-size: 0.625rem;
    color: var(--color-neutral-300);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1.8;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal.closing {
    opacity: 0;
}

.modal::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-close-btn {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s;
    z-index: 60;
}

.modal-close-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.modal-close-btn svg {
    width: 2rem;
    height: 2rem;
    display: block;
}

.modal-nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem;
    transition: all 0.3s;
    z-index: 55;
}

.modal-nav-btn:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
}

@media (min-width: 768px) {
    .modal-nav-btn svg {
        width: 3rem;
        height: 3rem;
    }
}

.modal-prev-btn {
    left: 1rem;
}

@media (min-width: 768px) {
    .modal-prev-btn {
        left: 1.5rem;
    }
}

.modal-next-btn {
    right: 1rem;
}

@media (min-width: 768px) {
    .modal-next-btn {
        right: 1.5rem;
    }
}

.modal-scroll-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    z-index: 10;
    opacity: 0;
    animation: fadeIn 0.4s ease-out forwards;
}

.modal-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 2rem;
    box-sizing: border-box;
    gap: 1.5rem;
}

.modal-hero {
    width: 100%;
    max-width: 1600px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    flex: 1;
    min-height: 0;
}

.modal-hero-image {
    max-width: 100%;
    max-height: calc(100vh - 250px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-out;
    border-radius: 4px;
}

@media (min-width: 768px) {
    .modal-content-wrapper {
        padding: 4rem 2rem 2rem;
        gap: 2rem;
    }
    
    .modal-hero-image {
        max-height: calc(100vh - 220px);
    }
}

.modal-details {
    width: 100%;
    max-width: 1200px;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .modal-details {
        padding: 0 2rem;
    }
}

.modal-header-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

@media (min-width: 768px) {
    .modal-header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        gap: 2rem;
    }
}

.modal-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
    display: block;
}

.modal-title {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    margin: 0;
}

@media (min-width: 768px) {
    .modal-title {
        font-size: 1.75rem;
    }
}

.modal-year-wrapper {
    display: none;
}

@media (min-width: 768px) {
    .modal-year-wrapper {
        display: block;
        text-align: right;
    }
}

.modal-year {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.4);
}

.modal-grid {
    display: none;
}

.modal-main-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.modal-artist-note {
    display: none;
}

.modal-section-title {
    display: none;
}

.modal-description {
    display: none;
}

.modal-gallery-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.modal-gallery-section h3 {
    border-bottom: 1px solid var(--color-neutral-100);
    padding-bottom: 1rem;
}

.modal-gallery-count {
    color: var(--color-neutral-400);
    font-weight: 400;
    margin-left: 0.5rem;
}

.modal-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.modal-gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(0%);
    transition: filter 0.7s;
}

@media (min-width: 768px) {
    .modal-gallery-grid img {
        filter: grayscale(0%);
    }
    
    .modal-gallery-grid img:hover {
        filter: grayscale(0%);
    }
}

.modal-meta-column {
    display: none;
}

.modal-details-section,
.modal-license-section {
    display: none;
}

.modal-related-section {
    display: none;
}

.modal-related-title {
    font-size: 1rem;
    margin-bottom: 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-align: center;
}

.modal-related-title::after {
    content: '← Swipe →';
    display: inline-block;
    margin-left: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .modal-related-title {
        text-align: left;
        font-size: 1.125rem;
    }
    
    .modal-related-title::after {
        display: none;
    }
}

.modal-related-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.modal-related-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .modal-related-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        overflow-x: visible;
        scroll-snap-type: none;
    }
}

.modal-related-item {
    cursor: pointer;
    position: relative;
    flex: 0 0 75%;
    scroll-snap-align: start;
}

@media (min-width: 768px) {
    .modal-related-item {
        flex: initial;
    }
}

.modal-related-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.modal-related-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s;
    filter: grayscale(0%);
}

@media (min-width: 768px) {
    .modal-related-image-wrapper img {
        filter: grayscale(0%);
    }
    
    .modal-related-item:hover .modal-related-image-wrapper img {
        transform: scale(1.05);
        filter: grayscale(0%);
    }
}

.modal-related-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.3s;
}

.modal-related-item:hover .modal-related-image-overlay {
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-related-item h4 {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.modal-related-item:hover h4 {
    color: rgba(255, 255, 255, 1);
}

.modal-related-item p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Scrollbar Hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInView {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .header {
        padding: 1.5rem 1rem;
    }

    .header-logo {
        font-size: 1.5rem;
    }

    .header-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }
}

