
/* WORK PAGE */
.work-page {
    width: min(1100px, 90%);
    margin: auto;
    color: #1d1d1f;
}

.work-hero {
    text-align: center;
    padding: 105px 0 100px;
}

.eyebrow {
    color: #6e6e73;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.8px;
}

.work-hero h1 {
    margin-top: 22px;
    font-size: clamp(55px, 8vw, 94px);
    line-height: .99;
    letter-spacing: -6px;
}

.work-hero h1 span {
    color: #86868b;
}

.work-description {
    max-width: 440px;
    margin: 25px auto 30px;
    color: #6e6e73;
    font-size: 15px;
    line-height: 1.8;
}

.work-hero .pill-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.gallery-section {
    padding-bottom: 80px;
    scroll-margin-top: 35px;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 27px;
}

.gallery-heading h2 {
    margin-top: 9px;
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -1.5px;
}

#photo-count {
    color: #6e6e73;
    font-size: 12px;
    white-space: nowrap;
    padding-bottom: 5px;
}

.upload-panel {
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
}

.upload-intro {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.upload-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f0f0f3;
    font-size: 24px;
}

.upload-intro h3 {
    font-size: 16px;
    letter-spacing: -.3px;
}

.upload-intro p,
.upload-status {
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 5px;
}

.upload-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.upload-button,
.url-form button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 100px;
    background: #0071e3;
    color: white;
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.upload-button:hover,
.url-form button:hover {
    background: #0077ed;
    transform: translateY(-1px);
}

.upload-button:focus-within {
    outline: 3px solid rgba(0, 102, 204, .2);
}

.or-divider {
    color: #86868b;
    font-size: 12px;
}

.url-form {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 9px;
    min-width: 240px;
}

.url-form input {
    min-width: 150px;
    flex: 1;
    padding: 12px 13px;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 10px;
    font: inherit;
    font-size: 12px;
    outline: none;
}

.url-form input:focus {
    border-color: #06c;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, .12);
}

.upload-status {
    margin-top: 18px;
}

.upload-status.error {
    color: #b42318;
}

.upload-status.success {
    color: #23753a;
}

/* PHOTO GRID */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.photo-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e8ea;
    border-radius: 17px;
    background: white;
    animation: photo-appear .35s ease both;
}

@keyframes photo-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-frame {
    aspect-ratio: 4 / 5;
    background: #f0f0f2;
    overflow: hidden;
}

.photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.photo-card:hover .photo-frame img {
    transform: scale(1.04);
}

.photo-details {
    padding: 15px;
}

.photo-details h3 {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.photo-details p {
    margin-top: 5px;
    color: #86868b;
    font-size: 10px;
}

.photo-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
}

.photo-actions a {
    color: #0071e3;
    text-decoration: none;
    font-size: 11px;
}

.remove-photo {
    border: 1px solid #e5e5e7;
    background: white;
    color: #6e6e73;
    border-radius: 100px;
    padding: 7px 10px;
    font-size: 10px;
    cursor: pointer;
}

.remove-photo:hover {
    background: #fff0ef;
    color: #b42318;
    border-color: #f2c6c2;
}

.empty-gallery {
    padding: 65px 20px;
    text-align: center;
    border: 1px dashed #d2d2d7;
    border-radius: 18px;
}

.empty-icon {
    color: #86868b;
    font-size: 35px;
    margin-bottom: 15px;
}

.empty-gallery h3 {
    font-size: 20px;
    letter-spacing: -.5px;
}

.empty-gallery p {
    margin-top: 10px;
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.7;
}

.work-outro {
    text-align: center;
    padding: 80px 0 100px;
    border-top: 1px solid #e5e5e7;
}

.work-outro h2 {
    margin: 17px 0 22px;
    font-size: clamp(42px, 6vw, 65px);
    line-height: 1.05;
    letter-spacing: -3px;
}

.work-outro > a {
    color: #0071e3;
    font-size: 13px;
    text-decoration: none;
}

.work-outro > a:hover {
    text-decoration: underline;
}

@media (max-width: 850px) {
    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .work-hero {
        padding: 80px 0;
    }
}

@media (max-width: 560px) {
    .work-page {
        width: 92%;
    }

    .work-hero {
        padding: 65px 0 75px;
    }

    .work-hero h1 {
        letter-spacing: -3.5px;
    }

    .gallery-heading {
        align-items: start;
    }

    .upload-panel {
        padding: 18px;
    }

    .upload-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .upload-button {
        min-height: 42px;
    }

    .or-divider {
        text-align: center;
    }

    .url-form {
        flex-direction: column;
        min-width: 0;
    }

    .url-form input {
        width: 100%;
        min-height: 42px;
    }

    .url-form button {
        min-height: 42px;
    }

    .photo-grid {
        gap: 12px;
    }

    .photo-card {
        border-radius: 12px;
    }

    .photo-details {
        padding: 11px;
    }

    .photo-details h3 {
        font-size: 12px;
    }

    .photo-actions {
        align-items: start;
        flex-direction: column;
    }

    .work-outro {
        padding: 65px 0;
    }
}


/* Respect elements hidden by JavaScript */
[hidden] {
    display: none !important;
}

.url-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.photo-frame.image-error {
    display: grid;
    place-items: center;
    padding: 15px;
    color: #6e6e73;
    font-size: 12px;
}


/* Admin login */
.admin-login {
    margin-bottom: 22px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e8;
    border-radius: 18px;
}

.admin-login h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.admin-login p {
    margin: 0 0 16px;
    color: #6e6e73;
    font-size: 13px;
}

#admin-login-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#admin-login-form input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    background: #f5f5f7;
    font: inherit;
    font-size: 13px;
}

#admin-login-form button,
#admin-logout {
    padding: 12px 18px;
    border: none;
    border-radius: 999px;
    background: #0071e3;
    color: white;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

#admin-login-form button:disabled {
    opacity: 0.6;
    cursor: wait;
}

#admin-logout {
    margin-top: 8px;
}

[hidden] {
    display: none !important;
}


/* ===== DARK MODE: WORK PAGE ===== */

html[data-theme="dark"] .work-page {
    color: var(--theme-text);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .work-description,
html[data-theme="dark"] #photo-count,
html[data-theme="dark"] .upload-intro p,
html[data-theme="dark"] .upload-status,
html[data-theme="dark"] .photo-details p,
html[data-theme="dark"] .empty-gallery p {
    color: var(--theme-muted);
}

html[data-theme="dark"] .work-hero h1 span {
    color: #a1a1a6;
}

html[data-theme="dark"] .upload-panel,
html[data-theme="dark"] .photo-card,
html[data-theme="dark"] .admin-login {
    background: var(--theme-surface);
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .upload-icon,
html[data-theme="dark"] .photo-frame {
    background: #29292c;
}

html[data-theme="dark"] .url-form input,
html[data-theme="dark"] #admin-login-form input {
    background: #252527;
    border-color: #3a3a3c;
    color: var(--theme-text);
}

html[data-theme="dark"] .url-form input::placeholder,
html[data-theme="dark"] #admin-login-form input::placeholder {
    color: #a1a1a6;
}

html[data-theme="dark"] .url-form input:focus,
html[data-theme="dark"] #admin-login-form input:focus {
    border-color: #2997ff;
}

html[data-theme="dark"] .remove-photo {
    background: #252527;
    color: #d1d1d6;
    border-color: #3a3a3c;
}

html[data-theme="dark"] .remove-photo:hover {
    background: #3a2424;
    border-color: #70403c;
    color: #ff8a80;
}

html[data-theme="dark"] .empty-gallery {
    border-color: #454549;
}

html[data-theme="dark"] .work-outro {
    border-color: var(--theme-border);
}

html[data-theme="dark"] .photo-frame.image-error {
    color: #c7c7cc;
}

/* Shared navigation and footer */
html[data-theme="dark"] .navbar,
html[data-theme="dark"] footer {
    background-color: #101010;
    border-color: var(--theme-border);
    color: var(--theme-text);
}

html[data-theme="dark"] .navbar a,
html[data-theme="dark"] footer a {
    color: var(--theme-text);
}

html[data-theme="dark"] .theme-toggle {
    background: #252527;
    color: #f5f5f7;
    border-color: #454549;
}
/* =====================================
   SMOOTH PAGE ANIMATIONS
===================================== */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s cubic-bezier(.2, .8, .2, 1),
        transform 0.75s cubic-bezier(.2, .8, .2, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card,
.contact-card {
    transition:
        transform 0.35s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s ease;
}

.project-card:hover,
.contact-card:hover {
    transform: translateY(-5px);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Photo hover animation */
.photo-card {
    overflow: hidden;
    border-radius: 18px;
}

.photo-card .photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(.2, .8, .2, 1);
}

.photo-card:hover .photo-frame img {
    transform: scale(1.05);
}
.videos-section {
    background: var(--theme-bg, #f5f5f7);
    color: var(--theme-text, #1d1d1f);
}

.videos-heading {
  max-width: 700px;
  margin: 0 auto 45px;
  text-align: center;
}

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  opacity: .65;
}

.videos-heading h2 {
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: -3px;
  margin: 12px 0;
}

.videos-heading > p:last-child {
  opacity: .7;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.video-card {
  border: 0;
  padding: 0;
  text-align: left;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity .7s ease, transform .7s ease;
}

.video-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  background: #d2d2d7;
}

.video-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.video-card:hover .video-thumbnail video {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: #0009;
  backdrop-filter: blur(10px);
  transition: transform .3s ease, background .3s ease;
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
  background: #000c;
}

.video-title {
  display: block;
  font-size: 19px;
  font-weight: 600;
  margin: 16px 0 5px;
}

.video-description {
  display: block;
  font-size: 14px;
  opacity: .65;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(0, 0, 0, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal video {
  width: min(100%, 1100px);
  max-height: 85vh;
  border-radius: 14px;
  transform: scale(.94);
  transition: transform .35s ease;
}

.video-modal.open video {
  transform: scale(1);
}

.video-close {
  position: absolute;
  top: 20px;
  right: 28px;
  border: 0;
  background: transparent;
  color: white;
  font-size: 42px;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .video-card, .video-thumbnail video, .play-button,
  .video-modal, .video-modal video {
    transition: none;
  }
}

.videos-section {
    padding: 100px 7%;
    background: var(--background, #f5f5f7);
    color: var(--text-color, #1d1d1f);
}

.videos-heading {
    text-align: center;
    margin: 0 auto 45px;
}

.videos-heading h2 {
    font-size: clamp(38px, 6vw, 68px);
    letter-spacing: -3px;
    margin: 12px 0;
}

.videos-heading p:last-child,
.video-description {
    opacity: .65;
}

.videos-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.video-card {
    width: min(100%, 280px);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s ease, transform .7s ease;
}

.video-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 9 / 16;
    border-radius: 22px;
    background: #1d1d1f;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    color: white;
    background: #0009;
    backdrop-filter: blur(10px);
}

.video-title,
.video-description {
    display: block;
}

.video-title {
    margin-top: 16px;
    font-weight: 600;
    font-size: 19px;
}

.video-description {
    margin-top: 5px;
    font-size: 14px;
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .92);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
}

.video-player {
    width: min(90vw, 420px);
    aspect-ratio: 9 / 16;
    transform: translateY(25px) scale(.96);
    transition: transform .35s ease;
}

.video-modal.open .video-player {
    transform: translateY(0) scale(1);
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
}

.video-close {
    position: absolute;
    top: 18px;
    right: 25px;
    border: 0;
    background: transparent;
    color: white;
    font-size: 42px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    .video-card,
    .video-thumbnail img,
    .video-modal,
    .video-player {
        transition: none;
    }
}

html[data-theme="dark"] .videos-section {
    background: var(--theme-bg);
    color: var(--theme-text);
}

html[data-theme="dark"] .videos-heading p,
html[data-theme="dark"] .video-description {
    color: var(--theme-muted);
}

.upload-panel[hidden] {
    display: none !important;
}



/* ===== YOUTUBE VIDEO MODAL CORRECTIONS ===== */

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal .video-player {
    position: relative;
    display: block;
    width: min(90vw, 420px);
    height: auto;
    aspect-ratio: 9 / 16;
    max-height: 85vh;
    max-height: 85dvh;
    overflow: hidden;
    border-radius: 18px;
    background: #111;
    transform: translateY(25px) scale(.96);
}

.video-modal.open .video-player {
    transform: translateY(0) scale(1);
}

.video-modal .video-player iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 18px;
    opacity: 1;
    visibility: visible;
}

.video-modal .video-close {
    z-index: 10;
    top: 18px;
    right: 25px;
    color: #fff;
}

@media (max-width: 560px) {
    .video-modal {
        padding: 15px;
    }

    .video-modal .video-player {
        width: min(85vw, 360px);
        max-height: 80vh;
        max-height: 80dvh;
    }
}




/* =====================================
   ASHERVERAH — PHOTOGRAPHY LIGHTBOX
===================================== */

/* Clickable gallery photographs */
.photo-frame.lightbox-trigger {
    cursor: zoom-in;
    position: relative;
}

.photo-frame.lightbox-trigger:focus-visible {
    outline: 3px solid #2997ff;
    outline-offset: -3px;
}

.photo-frame.lightbox-trigger::after {
    content: "View fullscreen ↗";
    position: absolute;
    bottom: 14px;
    right: 14px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}

.photo-frame.lightbox-trigger:hover::after,
.photo-frame.lightbox-trigger:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

/* Fullscreen overlay */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px 90px 35px;
    background: rgba(8, 8, 10, 0.97);
    color: #f5f5f7;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity .35s ease,
        visibility .35s ease;
}

.photo-lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Main photograph and caption */
.lightbox-content {
    width: 100%;
    max-width: 1400px;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    transform: translateY(12px) scale(.985);
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
}

.photo-lightbox.open .lightbox-content {
    transform: translateY(0) scale(1);
}

.lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100% - 65px);
    min-height: 0;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, .25);
}

.lightbox-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    width: min(100%, 850px);
    color: #f5f5f7;
}

.lightbox-title {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -.2px;
    overflow-wrap: anywhere;
}

.lightbox-counter {
    flex-shrink: 0;
    color: #a1a1a6;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* Close and navigation controls */
.lightbox-close,
.lightbox-arrow {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition:
        background .2s ease,
        transform .2s ease,
        border-color .2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .3);
    transform: scale(1.06);
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
    outline: 2px solid #2997ff;
    outline-offset: 4px;
}

.lightbox-close {
    top: 22px;
    right: 28px;
    z-index: 2;
    font-size: 28px;
    line-height: 1;
}

.lightbox-arrow {
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    font-size: 21px;
}

.lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.06);
}

.lightbox-prev {
    left: 25px;
}

.lightbox-next {
    right: 25px;
}

/* Tablet */
@media (max-width: 850px) {
    .photo-lightbox {
        padding: 75px 65px 35px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .photo-lightbox {
        padding: 75px 15px 35px;
    }

    .lightbox-content {
        gap: 18px;
    }

    .lightbox-image {
        max-height: calc(100% - 70px);
    }

    .lightbox-caption {
        padding: 0 8px;
        gap: 15px;
    }

    .lightbox-title {
        font-size: 12px;
    }

    .lightbox-close {
        top: 17px;
        right: 17px;
        width: 40px;
        height: 40px;
    }

    .lightbox-arrow {
        top: auto;
        bottom: 25px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .lightbox-arrow:hover {
        transform: scale(1.06);
    }

    .lightbox-prev {
        left: 17px;
    }

    .lightbox-next {
        right: 17px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .photo-lightbox,
    .lightbox-content,
    .lightbox-close,
    .lightbox-arrow,
    .photo-frame.lightbox-trigger::after {
        transition: none !important;
    }

    .lightbox-content {
        transform: none !important;
    }
}




/* ===== LIGHTBOX LAYOUT CORRECTIONS ===== */

.photo-lightbox {
    box-sizing: border-box;
    padding: 70px 75px 35px;
}

.photo-lightbox .lightbox-content {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.photo-lightbox .lightbox-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(78vh, 900px);
    max-height: min(78dvh, 900px);
    object-fit: contain;
    flex-shrink: 1;
    border-radius: 4px;
}

.photo-lightbox .lightbox-caption {
    width: min(100%, 850px);
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .photo-lightbox {
        padding: 70px 15px 90px;
    }

    .photo-lightbox .lightbox-image {
        max-width: 100%;
        max-height: 65vh;
        max-height: 65dvh;
    }
}
