/* themes/dreamy/styles.css — v2 (ported from v1, using --portfolio-* vars) */


/* Dreamy Theme - Pure Styling
*
* This theme uses pure CSS styling without embedded content assets.
* For the authentic Dreamy appearance:
* 1. Install recommended fonts from themes/recommended-assets/dreamy/
* 2. Configure Identity Kit in user-data/settings.yaml
*
* See: themes/recommended-assets/README.md
*/


/* ============================================================================
BACKGROUND
============================================================================ */

body {
    background-color: var(--portfolio-bg, #cbcbc6);
    background-image: var(--portfolio-bg-image, none);
    background-repeat: var(--portfolio-bg-repeat, repeat);
    background-attachment: fixed;
    background-size: auto;
    min-height: 100vh;
    color: var(--portfolio-text, #323232);
}

/* Static export: ensure root div covers body background */
.portfolio-root {
    --max-content-width: 1400px;
    background-color: var(--portfolio-bg, #cbcbc6);
    min-height: 100vh;
}

/* Static export: hide mobile nav trigger above sm breakpoint */
button[aria-label="Open navigation"] {
    display: none;
}

@media (max-width: 640px) {
    button[aria-label="Open navigation"] {
        display: block;
    }

    .nav-bar {
        display: none;
    }
}


/* Inner shadow overlay for depth */

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: inset 1px 1px 150px #222222;
    pointer-events: none;
    z-index: 0;
}


/* Ensure content is above the shadow overlay */

body>* {
    position: relative;
    z-index: 1;
}

h1,
h2,
h3 {
    font-family: var(--portfolio-heading-font, sans-serif);
}


/* Slideshow - transparent to show body background image */

.slideshow-container {
    background: transparent !important;
    --carousel-thumb-size: 100px;
    --carousel-thumb-radius: 50%;
}




/* ============================================================================
HEADER / LOGO
============================================================================ */


/* Logo underlayer - dark rectangle with rounded bottom corners */

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: auto;
    border-bottom: none !important;
}

.logo-link {
    position: absolute;
    top: 0;
    left: 63px;
    z-index: 1001;
    display: block;
    background: #323232;
    border-radius: 0 0 20px 20px;
    padding: 12px 16px;
    /* Larger padding - increased by ~10px */
    box-shadow: 1px 1px 2px #323232;
    border: none !important;
}

.logo-link:hover {
    border: none !important;
    transform: scale(1.02);
}

.logo-image {
    display: block;
    height: auto;
    width: 114px;
    max-height: 60px;
    filter: none;
}

.logo-text {
    font-family: var(--portfolio-heading-font, sans-serif);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f1f1ed;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .logo-link {
        left: 10px;
        border-radius: 0 0 12px 12px;
        padding: 6px 10px;
        box-shadow: none;
    }

    .logo-image {
        width: 60px;
        max-height: 40px;
        /* Larger on mobile - was 44px */
        height: auto;
    }

    .logo-text {
        font-size: 0.75rem;
    }
}


/* ============================================================================
NAVIGATION BAR
============================================================================ */

.nav-bar {
    position: relative;
    width: 100%;
    height: 20px;
    line-height: 20px;
    background: rgba(50, 50, 50, 0.85) !important;
    /* 85% opacity */
    display: flex;
    justify-content: flex-end;
    padding-right: 63px;
}

.nav-items {
    display: flex;
    height: 100%;
}

.nav-item {
    height: 20px;
    line-height: 20px;
    padding: 0 12px;
    color: #a4a4a0;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: none !important;
    display: flex;
    align-items: center;
}

.nav-item:hover {
    background: #a4a4a0;
    color: #323232;
    border: none !important;
}

.nav-item.active {
    background: var(--portfolio-accent, #efb600);
    color: var(--portfolio-on-accent, #323232);
}

@media (max-width: 720px) {
    .nav-bar {
        height: 30px;
        line-height: 30px;
        padding-right: 10px;
    }

    .nav-item {
        height: 30px;
        line-height: 30px;
    }
}


/* Header spacer to push content below fixed header */

.header-spacer {
    height: 20px;
}

@media (max-width: 720px) {
    .header-spacer {
        height: 30px;
    }
}


/* ============================================================================
CONTENT AREA
============================================================================ */


/* Gallery page - extra top padding for logo clearance */

.gallery-container {
    width: min(100%, var(--max-content-width, 1400px));
    max-width: var(--max-content-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-top: 70px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 40px;
}


/* Justified gallery - MUST have font-size:0 and line-height:0
to eliminate whitespace between inline-block items */

.justified-gallery {
    width: min(100%, var(--max-content-width, 1400px));
    max-width: var(--max-content-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-top: 70px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 40px;
    font-size: 0;
    line-height: 0;
    text-align: left;
}

.gallery-ssr-fallback {
    width: min(100%, var(--max-content-width, 1400px));
    max-width: var(--max-content-width, 1400px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-top: 70px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 40px;
}

@media (max-width: 720px) {
    .gallery-container {
        padding: 30px 12px 40px 12px;
    }

    .justified-gallery {
        padding: 30px 12px 40px 12px;
    }

    .gallery-ssr-fallback {
        padding: 30px 12px 40px 12px;
    }
}


/* ============================================================================
ABOUT PAGE
============================================================================ */

.about-content {
    padding: 80px 40px 30px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.about-photo-wrapper {
    position: sticky;
    top: 100px;
}

.about-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
}

.about-photo-caption {
    margin-top: 8px;
    font-size: 13px;
    color: var(--portfolio-muted, #a4a4a0);
    text-align: center;
    font-style: italic;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
}

/* h1 — page title: small uppercase label like the reference */
.about-text h1,
.about-title {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px 0;
    color: var(--portfolio-text);
}

/* h2 — section headings (The Artist, Contact, Legal) */
.about-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--portfolio-text);
}

/* h3 — subsection headings */
.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--portfolio-text);
}

.about-text p {
    margin-bottom: 1rem;
}

.about-text a {
    color: var(--portfolio-accent);
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
    .about-content {
        padding: 30px 20px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-photo-wrapper {
        position: static;
    }

    .about-photo {
        max-width: 250px;
        margin: 0 auto;
    }
}


/* ============================================================================
COLLECTIONS PAGE
============================================================================ */

.collections-container {
    padding-top: 70px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 40px;
}

.collections-heading {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 30px 0;
    color: var(--portfolio-text);
}

.collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.collection-card {
    border-radius: 20px;
    border: 4px solid #DFE0D3;
    box-shadow: 1px 1px 5px #333;
    outline: 4px solid transparent;
    outline-offset: -4px;
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out, outline-color 250ms ease-out;
    transform-origin: center bottom;
    padding: 0;
    overflow: hidden;
    display: block;
}

.collection-card:hover {
    transform: scale(1.02);
    box-shadow: 1px 1px 12px #333;
    border-color: var(--portfolio-accent, #efb600);
    outline-color: var(--portfolio-accent, #efb600);
}

.collection-thumb {
    border-radius: 0;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
    background: #323232;
}

.collection-count {
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    background: rgba(50, 50, 50, 0.75);
    color: #a4a4a0;
    letter-spacing: 0.03em;
}

.collection-info {
    padding: 14px 18px 16px;
    gap: 6px;
}

.collection-name {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--portfolio-text, #323232);
}

.collection-description {
    font-size: 0.8rem;
    opacity: 0.55;
    color: var(--portfolio-text, #323232);
    line-height: 1.5;
}

@media (max-width: 720px) {
    .collections-container {
        padding: 30px 12px 40px 12px;
    }

    .collections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collection-card {
        border-radius: 12px;
        border-width: 2px;
        outline-width: 2px;
        outline-offset: -2px;
    }
}


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

.gallery-item {
    border-radius: 30px;
    border: 5px solid #DFE0D3;
    box-sizing: border-box;
    box-shadow: 1px 1px 5px #333;
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-radius 250ms ease-out !important;
    text-decoration: none;
    /* Use outline for hover effect to prevent layout shift */
    outline: 2px solid transparent;
    outline-offset: -2px;
}

.gallery-item img {
    border-radius: 26px !important;
    transition: border-radius 250ms ease-out;
}

.gallery-item:hover {
    /* Keep border same size, use outline for the accent color effect */
    border: none;
    box-shadow: 1px 1px 10px #333;
    border-radius: 9px;
    transform: scale(1.03);
}

.gallery-item:hover img {
    border-radius: 3px !important;
}

.gallery-item .caption {
    background: #323232 !important;
    border-radius: 0 0 26px 26px;
}

.gallery-item:hover .caption {
    border-radius: 0 0 3px 3px;
}

@media (max-width: 720px) {
    .gallery-item {
        border-radius: 12px !important;
        border-width: 2px !important;
    }

    .gallery-item img {
        border-radius: 8px !important;
    }

    .gallery-item .caption {
        display: none !important;
    }
}


/* ===========================================================================/* ============================================================================
SLIDESHOW
============================================================================ */

.slideshow-container {
    background: transparent !important;
    --carousel-thumb-size: 100px;
    --carousel-thumb-radius: 50%;
    --slideshow-nav-button-left: 15px;
    --slideshow-nav-button-right: 15px;
    --slideshow-nav-button-padding: 16px 12px;
    --slideshow-nav-button-radius: 8px;
    --slideshow-nav-button-min-width: 61px;
    --slideshow-nav-button-min-height: 152px;
    --slideshow-nav-button-bg: rgba(255, 255, 255, 0.12);
    --slideshow-nav-button-hover-bg: rgba(255, 255, 255, 0.32);
    --slideshow-nav-button-color: var(--portfolio-text, #323232);
    --slideshow-nav-button-focus-bg: rgba(0, 0, 0, 0.22);
    --slideshow-nav-button-focus-color: var(--portfolio-accent, #efb600);
    --slideshow-nav-icon-height: 120px;
    --slideshow-nav-icon-width: auto;
    --slideshow-nav-icon-filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.3));
    --slideshow-image-max-height: calc(100vh - 280px);
    height: calc(100vh - 40px);
    margin-top: 20px;
}

@media (max-width: 720px) {
    .slideshow-container {
        margin-top: -30px;
    }
}

@media (max-width: 768px) {
    .slideshow-container {
        --slideshow-nav-button-display: none;
    }
}

.main-image-wrapper {
    padding: 50px;
    position: relative;
    z-index: 1002;
    pointer-events: none;
}

@media (max-width: 768px) {
    .main-image-wrapper {
        padding: 35px 15px 15px;
    }

    .slide-panel {
        padding: 0 3%;
    }
}

.main-image-wrapper .nav-btn,
.main-image-wrapper .slide-viewport {
    pointer-events: auto;
}

.main-image img {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.slide-panel img {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* Title area */

.title-area {
    padding: 12px 20px;
    background: transparent !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
}

.artwork-title {
    font-family: var(--portfolio-heading-font, sans-serif);
    font-weight: 100;
    font-size: 20px;
    color: var(--portfolio-text, #323232);
}


/* Slideshow title needs dark text on the page background */

.slideshow-container .artwork-title {
    color: var(--portfolio-text, #323232) !important;
    font-size: 22px;
    line-height: 1.6;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
    text-decoration-color: currentColor;
    opacity: 0.5;
}

.slideshow-container .more-info-btn,
.slideshow-container .title-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--portfolio-text, #323232) !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    padding-left: 26px !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    margin-left: 0 !important;
    text-transform: none;
}

.slideshow-container .info-icon {
    width: 18px;
    height: 18px;
    opacity: 0.5;
    color: var(--portfolio-text, #323232) !important;
}

.slideshow-container .more-info-label {
    display: none;
}

.slideshow-container .title-link:hover .artwork-title,
.slideshow-container .title-link:hover .info-icon {
    opacity: 0.8;
}


/* Carousel container */

.carousel-container {
    padding: 12px 10px;
    background: rgba(0, 0, 0, 0.35);
    border-top: none;
}

.slideshow-container .carousel-container {
    background: rgba(30, 30, 30, 0.4) !important;
}

.carousel-container.centered .carousel-track {
    justify-content: center;
}

.carousel-container.centered .carousel-nav {
    display: none;
}

.carousel-track {
    gap: 17px;
    padding: 5px 10px;
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0px, black 40px, black calc(100% - 40px), transparent 100%);
}


/* Carousel nav arrows - centered with semi-transparent bg */

.carousel-nav {
    background: rgba(0, 0, 0, 0.35) !important;
    border: none;
    color: var(--portfolio-text, #323232);
    padding: 0 5px;
    border-radius: 6px;
    height: 100px;
    cursor: pointer;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55) !important;
}

.carousel-nav-icon {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.2));
}


/* Carousel thumbnails */

.carousel-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #fff;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
    background: #323232;
}

.carousel-thumb:hover {
    border-color: #a4a4a0;
}

.carousel-thumb.active {
    border-color: var(--portfolio-accent, #efb600);
    border-width: 6px;
    transform: scale(1.05);
}


/* Footer toggle button for slideshow - arrow flips when open */

.footer-toggle {
    position: fixed;
    right: 170px;
    bottom: 0;
    z-index: 10000;
    width: 40px;
    height: 20px;
    cursor: pointer;
    background: #323232;
    border: none;
    border-radius: 10px 10px 0 0;
    box-shadow: 1px 1px 2px rgba(50, 50, 50, 0.45);
}

.footer-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--portfolio-accent, #efb600);
    border-left: 8px solid transparent;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
    border-bottom-color: var(--portfolio-accent, #efb600) !important;
}

.footer-toggle.open::before {
    transform: translate(-50%, -50%) rotate(180deg) !important;
}

.slideshow-pull-up-footer {
    position: relative;
    z-index: 1003;
}

@media (max-width: 840px) {
    .footer-toggle {
        display: none;
    }
}


/* ============================================================================
ARTWORK DETAIL PAGE
============================================================================ */

.artwork-detail {
    padding: 140px 80px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.artwork-detail > div:first-child {
    position: relative;
    z-index: 1002;
}

.artwork-layout {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Images column — sticky on desktop for scrolling info */
.artwork-images-column {
    position: sticky;
    top: 40px;
}

/* Image wrapper */
.artwork-image-wrapper {
    gap: 6px;
}

/* Clickable main image — dramatic shadow like v1 */
.artwork-main-image {
    border-radius: var(--corner-radius, 12px);
    box-shadow: 0 15px 100px 20px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.fullscreen-trigger:hover .artwork-main-image {
    opacity: 0.95;
}

/* Zoom indicator — appears on hover */
.zoom-indicator {
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
}

/* Image caption */
.image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--portfolio-muted, #a4a4a0);
    font-style: italic;
}

/* Museum plaque metadata styling */
.metadata-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin: 0;
    color: var(--portfolio-text, #323232);
}

.metadata-section::before {
    display: none;
}

.metadata-section .artwork-title {
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin: 0;
    color: var(--portfolio-text, #323232);
}

.artwork-meta {
    gap: 6px;
    font-size: 1rem;
    color: var(--portfolio-text, #323232);
}

.artwork-meta-field {
    border-bottom: 1px solid rgba(50, 50, 50, 0.1);
    padding: 8px 0;
}

.artwork-meta-field:last-child {
    border-bottom: none;
}

.artwork-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--portfolio-muted, #a4a4a0);
}

.artwork-meta-value {
    font-size: 0.875rem;
    color: var(--portfolio-text, #323232);
}

.artwork-description {
    color: var(--portfolio-text, #323232);
    font-size: 1rem;
    line-height: 1.6;
}

.tags-container {
    margin-top: 10px;
    gap: 8px;
}

.art-tag {
    font-size: 0.9rem;
    color: var(--portfolio-text, #323232);
    background: transparent;
    border: none;
    padding: 0;
    opacity: 0.8;
    text-transform: none;
}

.price-box {
    margin-top: 16px;
    color: var(--portfolio-text, #323232);
    font-size: 1.1rem;
}

.sold-label {
    color: var(--portfolio-muted, #a4a4a0);
    font-style: italic;
}

/* Back to gallery button — fixed in the open top-left gutter */
.back-to-gallery {
    position: fixed;
    top: 34px;
    left: 16px;
    z-index: 1105;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 0.25);
    color: #a4a4a0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    border: none !important;
}

html[data-theme="dreamy"] .portfolio-root .back-to-gallery {
    top: 34px;
    left: 16px;
}

.back-to-gallery:hover {
    background: rgba(50, 50, 50, 0.4);
    color: var(--portfolio-accent, #efb600);
    border: none !important;
}


/* Prev/Next navigation — custom SVG arrows matching v1 */
.artwork-nav-btn {
    background: transparent;
    color: #555;
    padding: 10px 4px;
    border: none !important;
    border-radius: 12px;
    transition: all 0.25s ease;
}

.artwork-nav-btn:hover {
    background: rgba(50, 50, 50, 0.12);
    color: #333;
    border: none !important;
}

.artwork-nav-btn.disabled {
    opacity: 0.12;
}

/* Arrow icon sizing — taller, elegant */
.nav-arrow-icon {
    width: 35px;
    height: 95px;
}

.artwork-nav-btn:hover .nav-arrow-icon {
    transform: scale(1.06);
}

.artwork-nav-prev .nav-arrow-icon {
    transform: scaleX(-1);
}

.artwork-nav-prev:hover .nav-arrow-icon {
    transform: scaleX(-1) scale(1.06);
}

.artwork-nav-prev {
    left: 12px;
}

.artwork-nav-next {
    right: 12px;
}

@media (max-width: 900px) {
    .artwork-detail {
        padding: 40px 20px;
    }

    .artwork-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .artwork-images-column {
        position: static;
    }
}

@media (max-width: 768px) {
    .back-to-gallery {
        top: 104px;
        left: 8px;
        width: 28px;
        height: 28px;
    }

    html[data-theme="dreamy"] .portfolio-root .back-to-gallery {
        top: calc(env(safe-area-inset-top) + 104px);
        left: calc(env(safe-area-inset-left) + 8px);
    }

    .nav-arrow-icon {
        width: 24px;
        height: 65px;
    }

    .artwork-nav-prev {
        left: 4px;
    }

    .artwork-nav-next {
        right: 4px;
    }
}

@media (max-width: 720px) {
    .back-to-gallery {
        top: 60px;
        left: 18px;
    }

    html[data-theme="dreamy"] .portfolio-root .back-to-gallery {
        top: calc(env(safe-area-inset-top) + 60px);
        left: calc(env(safe-area-inset-left) + 18px);
    }
}


/* ============================================================================
LINKS
============================================================================ */

a {
    color: var(--portfolio-link, #a4a4a0);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--portfolio-accent, #efb600);
    border-bottom: 1px dashed var(--portfolio-accent, #efb600);
}

a:visited {
    color: var(--portfolio-link, #a4a4a0);
}


/* ============================================================================
SELECTION
============================================================================ */

::selection {
    background: var(--portfolio-accent, #efb600);
    color: var(--portfolio-on-accent, #323232);
}

::-moz-selection {
    background: var(--portfolio-accent, #efb600);
    color: var(--portfolio-on-accent, #323232);
}


/* ============================================================================
FOOTER
============================================================================ */

.footer-container {
    background: #323232;
    color: #95968a;
}


.footer-container a {
    color: var(--portfolio-accent, #efb600);
}

.footer-container a:hover {
    color: var(--portfolio-accent, #efb600);
    border-bottom: none;
}


.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    padding: 30px 40px;
    align-items: start;
}

.footer-links-section {
    grid-column: 3;
}

.footer-logo-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Footer logo - desaturated and darkened */

.footer-logo {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.8;
    filter: grayscale(90%) brightness(0.7);
}

.footer-links-section nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    text-decoration: none;
}

.footer-link:hover {
    opacity: 0.7;
}

.footer-text {
    color: var(--portfolio-muted, #95968a);
}

.footer-heading {
    color: #f1f1ed;
}

.footer-credits {
    font-size: 12px;
    text-align: center;
    padding: 15px 40px;
}

.footer-attribution {
    padding: 0 40px 18px;
}

.footer-container .footer-attribution-badge {
    background: color-mix(in srgb, #242424 86%, var(--portfolio-accent, #efb600) 14%);
    color: var(--portfolio-accent, #efb600);
}

.footer-container .footer-attribution-badge:hover {
    background: color-mix(in srgb, #242424 76%, var(--portfolio-accent, #efb600) 24%);
    opacity: 1;
}

/* Remove footer divider line */

.footer-divider {
    border-top: none;
}

@media (max-width: 720px) {
    .footer-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .footer-links-section {
        grid-column: 1;
    }

    .footer-attribution {
        padding-inline: 20px;
    }

}


/* ============================================================================
FULLSCREEN MODAL
============================================================================ */

.fullscreen-modal-overlay {
    background: rgba(0, 0, 0, 0.95);
}

.fullscreen-modal {
    cursor: zoom-out;
    padding: 20px;
}

.fullscreen-image {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--portfolio-accent, #efb600);
}

/* ============================================================================
CUSTOM PAGES (Home, text pages, mini gallery)
============================================================================ */

.custom-page {
    padding-top: 70px;
    padding-left: 38px;
    padding-right: 38px;
    padding-bottom: 40px;
}

@media (max-width: 720px) {
    .custom-page {
        padding: 30px 12px 40px 12px;
    }
}

.custom-page-hero-image {
    border-radius: 12px;
    border: 4px solid #DFE0D3;
    box-shadow: 1px 1px 5px #333;
}

.custom-page-title {
    font-family: var(--portfolio-heading-font, sans-serif);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 28px;
    color: var(--portfolio-text, #323232);
    text-align: center;
    margin-bottom: 30px;
}

.custom-page-content h1 {
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 20px 0;
    color: var(--portfolio-text);
}

.custom-page-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-top: 2.5rem;
    margin-bottom: 0.8rem;
    color: var(--portfolio-text);
}

.custom-page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--portfolio-text);
}

.mini-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mini-gallery-item {
    text-decoration: none;
}

.mini-gallery-image-wrapper {
    border-radius: 20px;
    border: 4px solid #DFE0D3;
    box-shadow: 1px 1px 5px #333;
    outline: 4px solid transparent;
    outline-offset: -4px;
    transition: transform 250ms ease-out, box-shadow 250ms ease-out, border-color 250ms ease-out;
}

.mini-gallery-item:hover .mini-gallery-image-wrapper {
    transform: scale(1.02);
    box-shadow: 1px 1px 12px #333;
    border-color: var(--portfolio-accent, #efb600);
}

.mini-gallery-meta {
    padding: 10px 5px;
    text-align: center;
}

.mini-gallery-title {
    font-family: var(--portfolio-heading-font, sans-serif);
    font-weight: 400;
    color: var(--portfolio-text, #323232);
    font-size: 1rem;
}
