.gallery-page {
    overflow: clip;
}

/* Gallery hero */
.gallery-hero {
    position: relative;
    background: var(--color-pink);
}

.gallery-hero__inner {
    width: min(100% - 56px, var(--page-width));
    min-height: 440px;
    margin: 0 auto;
    padding: 30px 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
    align-items: center;
    gap: 48px;
}

.gallery-hero__content {
    width: 100%;
    max-width: 560px;
}

.gallery-hero__eyebrow {
    width: fit-content;
    margin: 0 0 30px;
    padding: 9px 22px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-red);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.gallery-hero__title {
    margin: 0;
    color: var(--color-white);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-size: clamp(40px, 4.8vw, 58px);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.035em;
}

.gallery-hero__title span,
.gallery-hero__title strong {
    display: block;
}

.gallery-hero__title strong {
    color: var(--color-primary);
    font: inherit;
}

.gallery-hero__description {
    max-width: 500px;
    margin: 22px 0 0;
    color: var(--color-primary-deep);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
}

.gallery-hero__actions {
    margin-top: 28px;
}

.gallery-hero__button {
    width: 190px;
    min-height: 40px;
    border: 1px solid var(--color-white);
    color: var(--color-primary);
    background: var(--color-white);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease,
        color 180ms ease;
}

.gallery-hero__button:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    color: var(--color-white);
    background: var(--color-primary);
}

.gallery-hero__button:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.gallery-hero__visual {
    min-height: 360px;
    position: relative;
    pointer-events: none;
}

/* Gallery Hero bundled artwork */
.gallery-hero__artwork {
    position: absolute;
    inset: 0;
    --gallery-hero-artwork-hover-y: 0px;
    transform:
        translate(
            var(--gallery-hero-artwork-shift-x, 0),
            var(--gallery-hero-artwork-shift-y, 0)
        )
        translateY(var(--gallery-hero-artwork-hover-y))
        scale(var(--gallery-hero-artwork-scale, 1));
    transform-origin: center;
    transition:
        transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-hero__visual-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 360px;
    transform:
        translate(-50%, -50%)
        translate(14px, -2px)
        scale(1.12);
    transform-origin: center;
}

/* Gallery Hero artwork */
.gallery-hero__frame {
    position: absolute;
    display: block;
    border-radius: 52px;
}

.gallery-hero__frame--white {
    top: 20px;
    left: 0;
    z-index: 0;
    width: 472px;
    height: 323px;
    background: var(--color-white);
}

.gallery-hero__frame--red {
    top: 35px;
    left: 18px;
    z-index: 1;
    width: 436px;
    height: 293px;
    background: var(--color-red);
}

.gallery-hero__photo {
    position: absolute;
    z-index: 3;
    display: block;
    width: 140px;
    max-width: none;
    height: auto;
}

.gallery-hero__photo--one {
    top: 50px;
    left: calc(50% - 4px);
    z-index: 4;
    width: 129px;
    transform: translateX(-50%);
}

.gallery-hero__photo--two {
    top: 72px;
    left: 79px;
    width: 79px;
    transform: rotate(-24.1deg);
}

.gallery-hero__photo--three {
    top: 72px;
    right: 87px;
    z-index: 3;
    width: 79px;
    transform: rotate(24.1deg);
}

.gallery-hero__mascot {
    position: absolute;
    z-index: 5;
    display: block;
    max-width: none;
    height: auto;
}

.gallery-hero__mascot--blue {
    right: 60px;
    bottom: 47px;
    width: 128px;
    transform-origin: bottom center;
    transform: rotate(10deg);
}

.gallery-hero__mascot--pink {
    left: 35.5px;
    bottom: 47px;
    width: 128px;
    transform-origin: bottom center;
    transform: rotate(-10deg);
}

.gallery-hero__camera {
    position: absolute;
    top: 124px;
    left: 238px;
    z-index: 6;
    display: block;
    width: 233px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.gallery-hero__camera-button {
    position: absolute;
    top: 115px;
    left: 152px;
    z-index: 5;
    width: 26px;
    height: 22px;
    display: block;
    border-radius: 6px;
    background: var(--color-primary);
}

.gallery-hero__camera-icon {
    position: absolute;
    top: 166px;
    left: 238px;
    z-index: 8;
    display: block;
    width: 105px;
    max-width: none;
    height: auto;
    transform: translateX(-50%);
}

.gallery-hero__star {
    position: absolute;
    z-index: 2;
    display: block;
    line-height: 1;
    user-select: none;
}

.gallery-hero__star--pink {
    top: 96px;
    right: 47px;
    color: var(--color-pink);
    font-size: 35px;
}

.gallery-hero__star--yellow {
    top: 88px;
    left: 34px;
    color: var(--color-yellow);
    font-size: 38px;
}

.gallery-hero__star--blue {
    top: 43px;
    left: 141px;
    color: var(--color-primary);
    font-size: 44px;
}

.gallery-hero__star--white {
    top: 65px;
    left: 312px;
    z-index: 5;
    color: var(--color-white);
    font-size: 36px;
}


/* Latest Gallery albums */
.gallery-latest {
    position: relative;
    background: var(--theme-page-background);
    padding: 72px 0 74px;
}

.gallery-latest__inner {
    width: min(100% - 56px, var(--page-width));
    margin: 0 auto;
    padding: 58px 0 92px;
}

.gallery-latest__heading {
    max-width: 780px;
    margin: 0 auto 46px;
    text-align: center;
}

.gallery-latest__heading > p {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 8px 22px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-red);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-latest__heading h2 {
    margin: 0;
    color: var(--color-primary);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.gallery-latest__heading > span {
    max-width: 680px;
    margin: 14px auto 0;
    display: block;
    color: var(--color-primary);
    font-size: 13px;
    line-height: 1.6;
}

.gallery-latest__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}

.gallery-latest__stack {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.gallery-album-card {
    min-width: 0;
    overflow: hidden;
    border: 2px solid var(--color-primary);
    border-radius: 26px;
    background: var(--theme-surface-raised);
}

.gallery-album-card--theme-primary {
    border-color: var(--color-primary);
}

.gallery-album-card--theme-red {
    border-color: var(--color-red);
}

.gallery-album-card--theme-pink {
    border-color: var(--color-pink);
}

.gallery-album-card--theme-yellow {
    border-color: var(--color-yellow);
}

.gallery-album-card__media {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--theme-surface-subtle);
}

.gallery-album-card--theme-primary .gallery-album-card__media {
    border-color: var(--color-primary);
}

.gallery-album-card--theme-red .gallery-album-card__media {
    border-color: var(--color-red);
}

.gallery-album-card--theme-pink .gallery-album-card__media {
    border-color: var(--color-pink);
}

.gallery-album-card--theme-yellow .gallery-album-card__media {
    border-color: var(--color-yellow);
}

.gallery-album-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.gallery-album-card__content {
    min-width: 0;
}

.gallery-album-card__content h3 {
    margin: 0;
    color: var(--color-primary);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.gallery-album-card__category {
    width: fit-content;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--color-white);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-album-card__category--primary {
    background: var(--color-primary);
}

.gallery-album-card__category--red {
    background: var(--color-red);
}

.gallery-album-card__category--pink {
    background: var(--color-pink);
}

.gallery-album-card__category--yellow {
    background: var(--color-yellow);
}

.gallery-album-card__footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gallery-album-card__footer time {
    color: var(--color-red);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.gallery-album-card__footer a {
    width: fit-content;
    min-height: 36px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--color-primary);
    border-radius: 999px;
    color: var(--color-primary);
    background: var(--color-white);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease;
}

.gallery-album-card__footer a:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    color: var(--color-white);
    background: var(--color-primary);
}

.gallery-album-card__footer a:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

/* Newest album */
.gallery-album-card--lead {
    padding: 12px 12px 20px;
    display: flex;
    flex-direction: column;
}

.gallery-album-card--lead .gallery-album-card__media {
    aspect-ratio: 12 / 7;
    border-radius: 18px;
}

.gallery-album-card--lead .gallery-album-card__category {
    position: static;
    top: auto;
    right: auto;
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0 0 4px;
}

.gallery-album-card--lead .gallery-album-card__content {
    min-height: 92px;
    padding: 22px 12px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 24px;
}

.gallery-album-card--lead .gallery-album-card__content h3 {
    font-size: clamp(25px, 2.4vw, 34px);
}

.gallery-album-card--lead .gallery-album-card__footer {
    min-width: 132px;
    height: 100%;
    padding: 4px 0 4px;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
    text-align: right;
}

.gallery-album-card--lead .gallery-album-card__footer time {
    margin-top: 4px;
}

/* Second and third latest albums */
.gallery-album-card--compact {
    height: 100%;
    padding: 12px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, 0.85fr);
    align-items: stretch;
    gap: 20px;
}

.gallery-album-card--compact .gallery-album-card__media {
    width: 100%;
    aspect-ratio: 12 / 7;
    align-self: center;
    border-radius: 16px;
}

.gallery-album-card--compact .gallery-album-card__content {
    min-height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gallery-album-card--compact .gallery-album-card__category {
    margin-bottom: 14px;
}

.gallery-album-card--compact .gallery-album-card__content h3 {
    font-size: clamp(19px, 1.9vw, 25px);
}

.gallery-album-card--compact .gallery-album-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 14px;
    align-items: flex-end;
    text-align: right;
}

.gallery-latest__empty {
    margin: 42px auto 0;
    color: var(--color-primary);
    text-align: center;
}


/* Complete Gallery album collection */
.gallery-collection {
    position: relative;
    background: var(--theme-page-background);
    padding: 72px 0 74px;
}

.gallery-collection__inner {
    width: min(100% - 56px, var(--page-width));
    margin: 0 auto;
    padding: 58px 0 96px;
}

.gallery-collection__heading {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.gallery-collection__heading > p {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 8px 22px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-red);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-collection__heading h2 {
    margin: 0;
    color: var(--color-primary);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.gallery-collection__heading > span {
    max-width: 660px;
    margin: 14px auto 0;
    display: block;
    color: var(--color-primary);
    font-size: 13px;
    line-height: 1.6;
}

.gallery-collection__filters {
    margin-top: 36px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gallery-filter {
    --gallery-filter-color: var(--color-primary);

    min-width: 120px;
    min-height: 38px;
    padding: 0 20px;
    border: 2px solid var(--gallery-filter-color);
    border-radius: 999px;
    color: var(--gallery-filter-color);
    background: var(--theme-surface);
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.gallery-filter--primary {
    --gallery-filter-color: var(--color-primary);
}

.gallery-filter--red {
    --gallery-filter-color: var(--color-red);
}

.gallery-filter--pink {
    --gallery-filter-color: var(--color-pink);
}

.gallery-filter--yellow {
    --gallery-filter-color: var(--color-yellow);
}

.gallery-filter:hover,
.gallery-filter.is-active {
    transform: translateY(-3px);
    color: var(--color-white);
    background: var(--gallery-filter-color);
}

.gallery-filter--yellow:hover,
.gallery-filter--yellow.is-active {
    color: var(--color-white);
}

.gallery-filter:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.gallery-collection__status {
    margin: 18px 0 0;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.gallery-collection__grid {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    scroll-margin-top: 96px;
}

.gallery-album-card--grid {
    flex: 0 1 calc((100% - 48px) / 3);
    max-width: calc((100% - 48px) / 3);
    min-height: 440px;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.gallery-album-card--grid[hidden] {
    display: none;
}

.gallery-album-card--grid .gallery-album-card__media {
    width: 100%;
    aspect-ratio: 12 / 7;
    flex-shrink: 0;
    border-radius: 16px;
}

.gallery-album-card--grid .gallery-album-card__content {
    padding: 20px 12px 8px;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-height: 168px;
}

.gallery-album-card--grid .gallery-album-card__category {
    margin-bottom: 14px;
}

.gallery-album-card--grid .gallery-album-card__content h3 {
    font-size: clamp(21px, 2vw, 27px);
}

.gallery-album-card--grid .gallery-album-card__footer {
    width: 100%;
    margin-top: auto;
    padding-top: 22px;
    align-items: flex-start;
}

.gallery-pagination {
    margin-top: 30px;
}

.gallery-pagination[hidden] {
    display: none;
}

.gallery-pagination__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gallery-pagination__button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    color: var(--color-primary);
    background: var(--theme-surface);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.gallery-pagination__button:hover,
.gallery-pagination__button[aria-current="page"] {
    transform: translateY(-3px);
    color: var(--color-white);
    background: var(--color-primary);
}

.gallery-pagination__button:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.gallery-collection__empty {
    margin: 42px auto 0;
    color: var(--color-primary);
    text-align: center;
}


/* Gallery connection CTA */
.gallery-connect {
    padding: 0 0 72px;
    background: var(--theme-page-background);
}

.gallery-connect__inner {
    width: min(100% - 56px, var(--page-width));
    margin: 0 auto;
}

.gallery-connect__panel {
    min-height: 250px;
    padding: 32px;
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    align-items: start;
    gap: 54px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--color-pink);
}

.gallery-connect__visual {
    position: relative;
    width: 232px;
    height: 232px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    border-radius: 24px;
    background: var(--color-white);
}

.gallery-connect__visual::before {
    content: "★";
    position: absolute;
    top: 16px;
    right: 18px;
    color: var(--color-red);
    font-size: 28px;
    line-height: 1;
}

.gallery-connect__visual::after {
    content: "";
    position: absolute;
    bottom: 18px;
    left: 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-yellow);
}

.gallery-connect__camera {
    position: relative;
    width: 176px;
    height: 116px;
    border-radius: 24px;
    background: var(--color-primary);
}

.gallery-connect__camera::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 22px;
    bottom: 20px;
    left: 22px;
    border: 10px solid var(--color-white);
    border-radius: 22px;
}

.gallery-connect__camera-flash {
    position: absolute;
    top: -12px;
    left: 48px;
    width: 54px;
    height: 22px;
    border-radius: 12px 12px 0 0;
    background: var(--color-yellow);
}

.gallery-connect__camera-lens {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 58px;
    border: 10px solid var(--color-white);
    border-radius: 50%;
    background: var(--color-pink);
    transform: translate(-50%, -50%);
}

.gallery-connect__content {
    min-width: 0;
}

.gallery-connect__eyebrow {
    width: fit-content;
    margin: 0 0 22px;
    padding: 9px 24px;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-red);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.gallery-connect__content h2 {
    margin: 0;
    color: var(--color-white);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-size: clamp(30px, 3.3vw, 44px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.025em;
}

.gallery-connect__content h2 strong {
    color: var(--color-primary);
    font-weight: inherit;
}

.gallery-connect__description {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--color-white);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.65;
}

.gallery-connect__actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.gallery-connect__button {
    min-width: 154px;
    min-height: 44px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.gallery-connect__button--primary {
    color: var(--color-white);
    border-color: var(--color-red);
    background: var(--color-red);
}

.gallery-connect__button--secondary {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: var(--color-white);
}

.gallery-connect__button:hover {
    transform: translateY(-3px);
}

.gallery-connect__button--primary:hover {
    color: var(--color-white);
    border-color: var(--color-red);
    background: var(--color-red);
}

.gallery-connect__button--secondary:hover {
    color: var(--color-white);
    background: var(--color-primary);
}

.gallery-connect__button:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}


/* Gallery album detail page */
.gallery-album-detail {
    --gallery-album-color: var(--color-primary);

    padding: 58px 0 88px;
    background: var(--theme-page-background);
}

.gallery-album-detail--theme-primary {
    --gallery-album-color: var(--color-primary);
}

.gallery-album-detail--theme-red {
    --gallery-album-color: var(--color-red);
}

.gallery-album-detail--theme-pink {
    --gallery-album-color: var(--color-pink);
}

.gallery-album-detail--theme-yellow {
    --gallery-album-color: var(--color-yellow);
}

.gallery-album-detail__inner {
    width: min(100% - 56px, var(--page-width));
    margin: 0 auto;
}

.gallery-album-detail__back {
    min-height: 42px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 2px solid var(--gallery-album-color);
    border-radius: 999px;
    color: var(--gallery-album-color);
    background: var(--theme-surface);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.gallery-album-detail__back:hover {
    transform: translateY(-3px);
    color: var(--color-white);
    background: var(--gallery-album-color);
}

.gallery-album-detail__back:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.gallery-album-detail__header {
    margin-top: 24px;
    padding: 42px 46px;
    overflow: hidden;
    border-radius: 30px;
    background: var(--gallery-album-color);
}

.gallery-album-detail__category {
    width: fit-content;
    margin: 0 0 20px;
    padding: 9px 22px;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    color: var(--color-white);
    background: var(--gallery-album-color);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.gallery-album-detail__header h1 {
    margin: 0;
    color: var(--color-white);
    font-family:
        "Trebuchet MS",
        "Arial Rounded MT Bold",
        Arial,
        sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.gallery-album-detail__meta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.gallery-album-detail__meta time {
    min-height: 34px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    color: var(--color-white);
    background: var(--gallery-album-color);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.gallery-album-detail__tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gallery-album-detail__tab {
    min-height: 34px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    color: var(--color-white);
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.gallery-album-detail__tab:hover,
.gallery-album-detail__tab.is-active {
    transform: translateY(-2px);
    color: var(--gallery-album-color);
    background: var(--color-white);
}

.gallery-album-detail__tab:focus-visible {
    outline: 3px solid var(--color-yellow);
    outline-offset: 3px;
}

.gallery-album-detail__panel[hidden] {
    display: none;
}

.gallery-album-detail__panel:focus {
    outline: none;
}

.gallery-album-detail__videos {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.gallery-album-detail__video {
    padding: 10px;
    overflow: hidden;
    border: 2px solid var(--gallery-album-color);
    border-radius: 24px;
    background: var(--theme-surface-raised);
}

.gallery-album-detail__video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    background: var(--color-primary);
}

.gallery-album-detail__video h2 {
    margin: 16px 8px 8px;
    color: var(--gallery-album-color);
    font-size: 18px;
    line-height: 1.3;
}

.gallery-album-detail__videos-empty {
    margin: 32px 0 0;
    padding: 44px 28px;
    border: 2px solid var(--gallery-album-color);
    border-radius: 24px;
    color: var(--gallery-album-color);
    background: var(--theme-surface-raised);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

.gallery-album-detail__gallery {
    margin-top: 32px;
}

.gallery-album-detail__featured {
    width: 100%;
}

.gallery-album-detail__masonry {
    --gallery-masonry-row-height: 8px;
    --gallery-masonry-gap: 24px;

    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: var(--gallery-masonry-gap);
}

.gallery-album-detail__masonry.is-enhanced {
    grid-auto-rows: var(--gallery-masonry-row-height);
    grid-auto-flow: row;
}

.gallery-album-detail__masonry.is-enhanced
.gallery-album-detail__image {
    grid-row-end: span var(--gallery-masonry-span, 1);
    align-self: start;
}

.gallery-album-detail__image {
    width: 100%;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 2px solid var(--gallery-album-color);
    border-radius: 24px;
    background: var(--theme-surface-raised);
}

.gallery-album-detail__featured .gallery-album-detail__image {
    padding: 12px;
    border-radius: 28px;
}

.gallery-album-detail__image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.gallery-album-detail__featured
.gallery-album-detail__image img {
    border-radius: 18px;
}

.gallery-album-detail__empty {
    margin: 32px auto 0;
    padding: 38px;
    border: 2px solid var(--gallery-album-color);
    border-radius: 24px;
    color: var(--gallery-album-color);
    background: var(--theme-surface-raised);
    text-align: center;
}

/* Gallery tablet layout */
@media (min-width: 681px) and (max-width: 1100px) {
    .gallery-hero__inner,
    .gallery-latest__inner,
    .gallery-collection__inner,
    .gallery-connect__inner {
        width: min(100% - 48px, var(--page-width));
    }

    .gallery-hero__inner {
        padding: 52px 0;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .gallery-hero__content {
        max-width: 680px;
    }

    .gallery-hero__title {
        font-size: clamp(44px, 6vw, 58px);
    }

    .gallery-hero__description {
        max-width: 560px;
        font-size: 14px;
    }

    .gallery-hero__visual {
        display: none;
    }

    .gallery-latest {
        padding: 56px 0 60px;
    }

    .gallery-latest__heading {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
    }

    .gallery-latest__layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 24px;
    }

    .gallery-latest__layout
    > .gallery-album-card--lead {
        width: 100%;
        grid-column: 1 / -1;
    }

    .gallery-latest__stack {
        display: contents;
    }

    .gallery-latest__stack
    > .gallery-album-card {
        width: 100%;
        min-width: 0;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__media {
        width: 100%;
        aspect-ratio: 12 / 5;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__content {
        min-height: 124px;
        padding: 20px 22px;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__content h3 {
        font-size: 26px;
        line-height: 1.08;
    }

    .gallery-latest
    .gallery-album-card--compact {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
    }

    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__media {
        width: 100%;
        min-width: 0;
        aspect-ratio: 12 / 7;
    }

    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__content {
        min-width: 0;
        min-height: 150px;
        padding: 20px;
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__content h3 {
        font-size: 23px;
        line-height: 1.08;
    }

    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__footer {
        width: 100%;
        margin-top: auto;
        align-items: flex-end;
    }

    .gallery-collection {
        padding: 56px 0 60px;
    }

    .gallery-collection__heading {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
    }

    .gallery-collection__filters {
        width: min(100%, 780px);
        margin-right: auto;
        margin-left: auto;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-filter {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        padding: 7px 14px;
        grid-column: span 2;
        font-size: 10px;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
    }

    .gallery-filter:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .gallery-filter:nth-child(5) {
        grid-column: 4 / span 2;
    }

    .gallery-collection__grid {
        align-items: stretch;
        gap: 24px;
    }

    .gallery-album-card--grid {
        width: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
        min-width: 0;
        min-height: 0;
    }

    .gallery-album-card--grid
    .gallery-album-card__content {
        min-height: 150px;
        padding: 20px;
    }

    .gallery-album-card--grid
    .gallery-album-card__content h3 {
        font-size: 23px;
        line-height: 1.08;
    }

    .gallery-album-card__category {
        max-width: 100%;
        padding-right: 13px;
        padding-left: 13px;
        font-size: 9px;
        line-height: 1.15;
        white-space: normal;
        text-align: center;
    }

    .gallery-pagination {
        margin-top: 28px;
    }

    .gallery-connect {
        padding: 0 0 56px;
    }

    .gallery-connect__panel {
        padding: 26px 28px;
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: center;
        gap: 28px;
    }

    .gallery-connect__visual {
        width: 180px;
        height: 180px;
        align-self: center;
    }

    .gallery-connect__content {
        min-width: 0;
    }

    .gallery-connect__content h2 {
        font-size: clamp(34px, 4.6vw, 44px);
    }

    .gallery-connect__description {
        max-width: 520px;
        font-size: 13px;
    }

    .gallery-connect__actions {
        gap: 12px;
    }

    .gallery-connect__button {
        min-width: 160px;
    }
}

/* Gallery spacing and tablet refinement */
.gallery-latest {
    min-height: 0;
    padding: 72px 0 40px;
}

.gallery-latest__inner,
.gallery-latest__layout,
.gallery-latest__stack {
    min-height: 0;
}

.gallery-collection {
    min-height: 0;
    padding: 40px 0 64px;
}

.gallery-collection__inner,
.gallery-collection__grid {
    min-height: 0;
}

@media (min-width: 681px) and (max-width: 1100px) {
    .gallery-latest {
        padding: 56px 0 30px;
    }

    .gallery-latest__layout
    > .gallery-album-card--lead {
        grid-row: auto;
    }

    .gallery-latest__stack,
    .gallery-latest__stack
    > .gallery-album-card {
        min-height: 0;
    }

    .gallery-collection {
        padding: 30px 0 52px;
    }

    .gallery-collection__grid {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        justify-content: center;
        gap: 24px;
    }

    .gallery-album-card--grid {
        width: calc((100% - 24px) / 2);
        max-width: calc((100% - 24px) / 2);
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .gallery-album-card--grid
    .gallery-album-card__media {
        width: 100%;
        aspect-ratio: 12 / 7;
    }

    .gallery-album-card--grid
    .gallery-album-card__content {
        min-height: 150px;
    }

    .gallery-pagination {
        margin-top: 28px;
    }

    .gallery-connect {
        padding: 0 0 52px;
    }

    .gallery-connect__panel {
        padding: 26px 28px;
        grid-template-columns: 164px minmax(0, 1fr);
        align-items: stretch;
        gap: 26px;
    }

    .gallery-connect__visual {
        width: 100%;
        height: auto;
        min-height: 0;
        align-self: stretch;
    }

    .gallery-connect__camera {
        transform: scale(0.78);
        transform-origin: center;
    }
}

/* Gallery section rhythm correction */
.gallery-latest {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 22px;
}

.gallery-latest__inner,
.gallery-latest__layout,
.gallery-latest__stack {
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.gallery-latest__layout {
    grid-auto-rows: auto;
    align-items: start;
}

.gallery-collection {
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding-top: 22px;
}

.gallery-collection__inner,
.gallery-collection__heading {
    margin-top: 0;
    padding-top: 0;
}

@media (min-width: 1101px) {
    .gallery-latest__layout {
        grid-template-rows: repeat(2, auto);
    }

    .gallery-latest__stack {
        align-self: start;
    }
}

@media (min-width: 681px) and (max-width: 1100px) {
    .gallery-latest {
        padding-bottom: 14px;
    }

    .gallery-latest__layout {
        grid-template-rows: auto auto;
        grid-auto-rows: auto;
        align-items: start;
    }

    .gallery-latest__layout
    > .gallery-album-card--lead,
    .gallery-latest__stack
    > .gallery-album-card {
        align-self: start;
    }

    .gallery-latest__stack {
        align-self: start;
    }

    .gallery-collection {
        padding-top: 14px;
    }
}

/* Gallery final desktop and tablet rhythm */
@media (min-width: 1101px) {
    /*
     * Move the complete Latest Albums section upward:
     * eyebrow, title, description, and cards all move together.
     */
    .gallery-latest {
        padding-top: 12px;
    }

    .gallery-latest__heading {
        margin-top: 0;
    }

    /*
     * Keep the lead card aligned with the bottom edge of the
     * two compact cards while reducing its excessive height.
     */
    .gallery-latest__layout {
        align-items: stretch;
    }

    .gallery-latest__layout
    > .gallery-album-card--lead {
        height: 100%;
        align-self: stretch;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__media {
        aspect-ratio: 16 / 9;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__content {
        min-height: 92px;
    }

    .gallery-latest__stack {
        height: 100%;
        align-self: stretch;
    }
}

@media (min-width: 681px) and (max-width: 1100px) {
    /*
     * Tablet needs a slightly tighter transition from the hero
     * while retaining clear separation before Browse Albums.
     */
    .gallery-latest {
        padding-top: 44px;
        padding-bottom: 36px;
    }

    .gallery-collection {
        padding-top: 36px;
    }
}

/* Lead Gallery card content alignment */
@media (min-width: 681px) {
    .gallery-album-card--lead {
        display: flex;
        flex-direction: column;
    }

    .gallery-album-card--lead
    .gallery-album-card__content {
        min-width: 0;
        min-height: 0;
        padding: 20px 12px 14px;
        display: grid;
        flex: 1;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto 1fr;
        grid-template-areas:
            "category footer"
            "title footer";
        align-items: start;
        column-gap: 24px;
        row-gap: 14px;
    }

    .gallery-album-card--lead
    .gallery-album-card__category {
        grid-area: category;
        grid-column: auto;
        align-self: start;
        justify-self: start;
        margin: 0;
    }

    .gallery-album-card--lead
    .gallery-album-card__content h3 {
        grid-area: title;
        align-self: start;
        margin: 0;
    }

    .gallery-album-card--lead
    .gallery-album-card__footer {
        width: auto;
        min-width: 148px;
        height: 100%;
        margin: 0;
        grid-area: footer;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }

    .gallery-album-card--lead
    .gallery-album-card__footer time {
        margin: 0;
        white-space: nowrap;
    }

    .gallery-album-card--lead
    .gallery-album-card__footer a {
        min-width: 128px;
        margin: 0;
    }
}

/* Gallery mobile layout */
@media (max-width: 680px) {
    .gallery-hero__inner,
    .gallery-latest__inner,
    .gallery-collection__inner,
    .gallery-connect__inner {
        width: min(100% - 32px, var(--page-width));
    }

    .gallery-hero__inner {
        padding: 44px 0 30px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .gallery-hero__content {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .gallery-hero__eyebrow {
        padding: 8px 18px;
        font-size: 10px;
    }

    .gallery-hero__title {
        width: 100%;
        max-width: none;
        font-size: clamp(38px, 12vw, 48px);
        line-height: 0.96;
        word-break: normal;
        overflow-wrap: normal;
    }

    .gallery-hero__title-line {
        display: block;
    }

    .gallery-hero__description {
        width: 100%;
        max-width: none;
        font-size: 13px;
        line-height: 1.6;
        word-break: normal;
        overflow-wrap: normal;
    }

    .gallery-hero__actions {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gallery-hero__button {
        width: 100%;
        max-width: 220px;
        min-width: 0;
    }

    .gallery-hero__visual {
        width: 100%;
        max-width: none;
        min-height: 220px;
        display: block;
    }

    .gallery-hero__scene,
    .gallery-hero__stage {
        width: 100%;
        min-height: 220px;
    }

    .gallery-latest {
        padding: 46px 0 24px;
    }

    .gallery-latest__heading {
        width: 100%;
        max-width: none;
        margin: 0 auto 28px;
    }

    .gallery-latest__heading > p {
        padding: 8px 18px;
        font-size: 10px;
    }

    .gallery-latest__heading h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .gallery-latest__heading > span {
        max-width: 520px;
        font-size: 13px;
        line-height: 1.55;
    }

    .gallery-latest__layout {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        grid-auto-rows: auto;
        align-items: start;
        gap: 22px;
    }

    .gallery-latest__layout
    > .gallery-album-card--lead {
        width: 100%;
        height: auto;
        grid-column: auto;
        grid-row: auto;
        align-self: start;
    }

    .gallery-latest__stack {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-self: start;
        gap: 22px;
    }

    .gallery-latest__stack
    > .gallery-album-card {
        width: 100%;
        max-width: none;
        min-width: 0;
        height: auto;
    }

    .gallery-latest
    .gallery-album-card {
        display: flex;
        flex-direction: column;
    }

    .gallery-latest
    .gallery-album-card__media,
    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__media,
    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__media {
        width: 100%;
        min-width: 0;
        aspect-ratio: 12 / 7;
    }

    .gallery-latest
    .gallery-album-card__content,
    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__content,
    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__content {
        width: 100%;
        min-width: 0;
        min-height: 0;
        padding: 20px;
        display: flex;
        flex: 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__category {
        position: static;
        grid-column: auto;
        margin: 0;
    }

    .gallery-latest
    .gallery-album-card__content h3,
    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__content h3,
    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__content h3 {
        width: 100%;
        margin: 0;
        font-size: 26px;
        line-height: 1.08;
    }

    .gallery-latest
    .gallery-album-card__footer,
    .gallery-latest
    .gallery-album-card--lead
    .gallery-album-card__footer,
    .gallery-latest
    .gallery-album-card--compact
    .gallery-album-card__footer {
        width: 100%;
        min-width: 0;
        height: auto;
        margin-top: auto;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }

    .gallery-latest
    .gallery-album-card__footer time {
        margin: 0;
        white-space: nowrap;
    }

    .gallery-latest
    .gallery-album-card__footer a {
        width: auto;
        min-width: 128px;
        margin: 0;
    }

    .gallery-collection {
        padding: 24px 0 54px;
    }

    .gallery-collection__heading {
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }

    .gallery-collection__heading > p {
        padding: 8px 18px;
        font-size: 10px;
    }

    .gallery-collection__heading h2 {
        font-size: 34px;
        line-height: 1.08;
    }

    .gallery-collection__heading > span {
        max-width: 520px;
        font-size: 13px;
        line-height: 1.55;
    }

    .gallery-collection__filters {
        width: 100%;
        margin: 26px 0 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .gallery-filter,
    .gallery-filter:nth-child(4),
    .gallery-filter:nth-child(5) {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 8px 16px;
        grid-column: auto;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .gallery-collection__status {
        margin-top: 16px;
        font-size: 11px;
    }

    .gallery-collection__grid {
        width: 100%;
        margin-top: 28px;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 22px;
    }

    .gallery-album-card--grid {
        width: 100%;
        max-width: 420px;
        min-width: 0;
        min-height: 0;
        flex: none;
    }

    .gallery-album-card--grid
    .gallery-album-card__media {
        width: 100%;
        aspect-ratio: 12 / 7;
    }

    .gallery-album-card--grid
    .gallery-album-card__content {
        min-height: 0;
        padding: 20px;
    }

    .gallery-album-card--grid
    .gallery-album-card__content h3 {
        font-size: 25px;
        line-height: 1.08;
    }

    .gallery-album-card__category {
        max-width: 100%;
        padding-right: 14px;
        padding-left: 14px;
        font-size: 9px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
    }

    .gallery-album-card--grid
    .gallery-album-card__footer {
        width: 100%;
        margin-top: 24px;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
    }

    .gallery-album-card--grid
    .gallery-album-card__footer a {
        min-width: 128px;
    }

    .gallery-pagination {
        margin-top: 28px;
    }

    .gallery-connect {
        padding: 0 0 56px;
    }

    .gallery-connect__panel {
        padding: 22px 18px 24px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 28px;
    }

    .gallery-connect__visual {
        width: min(100%, 280px);
        height: 190px;
        min-height: 0;
        margin: 0 auto;
        align-self: auto;
    }

    .gallery-connect__camera {
        transform: scale(0.72);
        transform-origin: center;
    }

    .gallery-connect__content {
        width: 100%;
        min-width: 0;
        max-width: none;
        text-align: center;
    }

    .gallery-connect__eyebrow {
        margin-right: auto;
        margin-left: auto;
    }

    .gallery-connect__content h2 {
        font-size: 36px;
        line-height: 1.08;
    }

    .gallery-connect__description {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
        font-size: 13px;
        line-height: 1.55;
    }

    .gallery-connect__actions {
        width: 100%;
        margin-top: 24px;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .gallery-connect__button {
        width: 100%;
        min-width: 0;
    }

    .gallery-album-detail__gallery {
        margin-top: 28px;
    }

    .gallery-album-detail__masonry {
        --gallery-masonry-gap: 18px;

        margin-top: 18px;
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gallery-masonry-gap);
    }

    .gallery-album-detail__masonry.is-enhanced {
        grid-auto-flow: row;
    }

    .gallery-album-detail__masonry
    .gallery-album-detail__image,
    .gallery-album-detail__masonry.is-enhanced
    .gallery-album-detail__image {
        width: 100%;
        max-width: none;
        grid-column: 1;
    }

    .gallery-album-detail__featured
    .gallery-album-detail__image {
        width: 100%;
        max-width: none;
    }


}



/* Gallery content interaction refinement */

/* Scroll reveals */
.gallery-latest__heading,
.gallery-latest__layout,
.gallery-collection__heading,
.gallery-collection__filters,
.gallery-collection__grid {
    opacity: 1;
    transform: none;
    transition:
        opacity 460ms ease,
        transform 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-latest__heading.is-reveal-ready:not(.is-revealed),
.gallery-collection__heading.is-reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(14px);
}

.gallery-latest__layout.is-reveal-ready:not(.is-revealed),
.gallery-collection__filters.is-reveal-ready:not(.is-revealed),
.gallery-collection__grid.is-reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(12px);
}

.gallery-latest__layout.is-reveal-ready {
    transition-delay: 70ms;
}

.gallery-collection__filters.is-reveal-ready {
    transition-delay: 60ms;
}

.gallery-collection__grid.is-reveal-ready {
    transition-delay: 100ms;
}

/*
 * Album cards:
 * neutral depth only.
 * No category-coloured shadow is introduced.
 */
.gallery-album-card {
    transition:
        transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 300ms ease;
}

.gallery-album-card__media img {
    transition:
        transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-album-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(34, 34, 34, 0.08);
    }

    .gallery-album-card:hover
    .gallery-album-card__media img {
        transform: scale(1.018);
    }
}

/*
 * View Album:
 * retain the existing blue-fill hover.
 * Only add a physical press response.
 */
.gallery-album-card__footer a:active {
    transform: translateY(1px) scale(0.98);
}

/*
 * Filter colour refinement.
 * Outline colour remains controlled by --gallery-filter-color.
 * Hover/active colours remain exactly as already implemented.
 */
.gallery-filter--pink:not(.is-active):not(:hover):not(:focus-visible) {
    color: var(--color-pink-deep);
}

.gallery-filter--yellow:not(.is-active):not(:hover):not(:focus-visible) {
    color: var(--color-yellow-deep);
}

/* Smooth physical feedback for filters and pagination. */
.gallery-filter,
.gallery-pagination__button {
    transition:
        transform 240ms ease,
        background-color 240ms ease,
        border-color 240ms ease,
        color 240ms ease,
        opacity 240ms ease;
}

.gallery-filter:active,
.gallery-pagination__button:active {
    transform: translateY(1px) scale(0.98);
}

/*
 * Filter/page content switch.
 * The existing Gallery JS still controls which albums are shown.
 */
.gallery-collection__grid {
    transition:
        opacity 320ms ease,
        transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-collection__grid.is-gallery-switching {
    opacity: 0.24;
    transform: translateY(6px);
}

@keyframes gallery-album-card-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gallery-album-card--grid.is-gallery-entering {
    animation:
        gallery-album-card-enter
        420ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        var(--gallery-card-enter-delay, 0ms)
        both;
}

/* Tablet/mobile: simpler reveals, no directional movement. */
@media (max-width: 1100px) {
    .gallery-latest__heading.is-reveal-ready:not(.is-revealed),
    .gallery-latest__layout.is-reveal-ready:not(.is-revealed),
    .gallery-collection__heading.is-reveal-ready:not(.is-revealed),
    .gallery-collection__filters.is-reveal-ready:not(.is-revealed),
    .gallery-collection__grid.is-reveal-ready:not(.is-revealed) {
        opacity: 0;
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-latest__heading,
    .gallery-latest__layout,
    .gallery-collection__heading,
    .gallery-collection__filters,
    .gallery-collection__grid,
    .gallery-album-card,
    .gallery-album-card__media img,
    .gallery-album-card__footer a,
    .gallery-filter,
    .gallery-pagination__button {
        transition: none;
        animation: none;
    }

    .gallery-latest__heading.is-reveal-ready,
    .gallery-latest__heading.is-revealed,
    .gallery-latest__layout.is-reveal-ready,
    .gallery-latest__layout.is-revealed,
    .gallery-collection__heading.is-reveal-ready,
    .gallery-collection__heading.is-revealed,
    .gallery-collection__filters.is-reveal-ready,
    .gallery-collection__filters.is-revealed,
    .gallery-collection__grid.is-reveal-ready,
    .gallery-collection__grid.is-revealed,
    .gallery-collection__grid.is-gallery-switching {
        opacity: 1;
        transform: none;
    }

    .gallery-album-card:hover,
    .gallery-album-card:hover
    .gallery-album-card__media img,
    .gallery-album-card__footer a:active,
    .gallery-filter:active,
    .gallery-pagination__button:active {
        transform: none;
    }
}


/* Gallery final main-page refinement */

/*
 * Stay Connected:
 * simple desktop reveal plus restrained visual movement.
 */
.gallery-connect__panel {
    opacity: 1;
    transform: none;
    transition:
        opacity 460ms ease,
        transform 460ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-connect__panel.is-reveal-ready:not(.is-revealed) {
    opacity: 0;
    transform: translateY(14px);
}

.gallery-connect__panel.is-revealed {
    opacity: 1;
    transform: none;
}

.gallery-connect__visual {
    transition:
        transform 340ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-connect__button:active {
    transform: translateY(1px) scale(0.98);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
    .gallery-connect__panel:hover
    .gallery-connect__visual {
        transform:
            translateY(-4px)
            rotate(-1deg);
    }
}

/*
 * Tablet:
 * whole-section fades only.
 *
 * The detailed desktop child reveals are neutralised while
 * the parent wrappers receive the established 420ms fade.
 */
@media (min-width: 681px) and (max-width: 1100px) {
    .gallery-latest__inner,
    .gallery-connect__panel {
        opacity: 1;
        transform: none;
        transition:
            opacity 420ms ease;
    }

    .gallery-latest__inner.is-reveal-ready:not(.is-revealed),
    .gallery-connect__panel.is-reveal-ready:not(.is-revealed) {
        opacity: 0;
        transform: none;
    }

    .gallery-latest__heading.is-reveal-ready:not(.is-revealed),
    .gallery-latest__layout.is-reveal-ready:not(.is-revealed) {
        opacity: 1;
        transform: none;
    }

    .gallery-collection__heading,
    .gallery-collection__filters,
    .gallery-collection__grid {
        transition-duration: 420ms;
    }
}

/*
 * Mobile:
 * same whole-section behaviour, slightly quicker at 360ms.
 */
@media (max-width: 680px) {
    .gallery-latest__inner,
    .gallery-connect__panel {
        opacity: 1;
        transform: none;
        transition:
            opacity 360ms ease;
    }

    .gallery-latest__inner.is-reveal-ready:not(.is-revealed),
    .gallery-connect__panel.is-reveal-ready:not(.is-revealed) {
        opacity: 0;
        transform: none;
    }

    .gallery-latest__heading.is-reveal-ready:not(.is-revealed),
    .gallery-latest__layout.is-reveal-ready:not(.is-revealed) {
        opacity: 1;
        transform: none;
    }

    .gallery-collection__heading,
    .gallery-collection__filters,
    .gallery-collection__grid {
        transition-duration: 360ms;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-latest__inner,
    .gallery-collection__inner,
    .gallery-connect__panel,
    .gallery-connect__visual,
    .gallery-connect__button {
        animation: none;
        transition: none;
    }

    .gallery-latest__inner.is-reveal-ready,
    .gallery-latest__inner.is-revealed,
    .gallery-collection__inner.is-reveal-ready,
    .gallery-collection__inner.is-revealed,
    .gallery-connect__panel.is-reveal-ready,
    .gallery-connect__panel.is-revealed {
        opacity: 1;
        transform: none;
    }

    .gallery-connect__panel:hover
    .gallery-connect__visual,
    .gallery-connect__button:active {
        transform: none;
    }
}


/* Gallery Connect decorative motion */
.gallery-connect__visual::before,
.gallery-connect__visual::after {
    transition:
        transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
    /* Decorative circle gently drifts outward. */
    .gallery-connect__panel:hover
    .gallery-connect__visual::after {
        transform:
            translate(-3px, 3px)
            scale(1.08);
    }

    /* Decorative star lifts and twists independently. */
    .gallery-connect__panel:hover
    .gallery-connect__visual::before {
        transform:
            translate(2px, -5px)
            rotate(12deg)
            scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-connect__visual::before,
    .gallery-connect__visual::after {
        transition: none;
    }

    .gallery-connect__panel:hover
    .gallery-connect__visual::before,
    .gallery-connect__panel:hover
    .gallery-connect__visual::after {
        transform: none;
    }
}

/* Gallery Hero interactions */
@keyframes gallery-hero-content-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes gallery-hero-visual-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gallery-hero__content {
    animation:
        gallery-hero-content-in
        560ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        60ms
        both;
}

.gallery-hero__visual {
    animation:
        gallery-hero-visual-in
        620ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        150ms
        both;
}

.gallery-hero__button {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.gallery-hero__button:hover,
.gallery-hero__button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(34, 34, 34, 0.12);
}

.gallery-hero__button:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(34, 34, 34, 0.10);
}

/*
 * Rich artwork movement remains desktop-only.
 * Tablet/mobile retain the approved locked composition.
 */
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
    .gallery-hero__visual {
        pointer-events: auto;
    }

    .gallery-hero__camera,
    .gallery-hero__camera-button,
    .gallery-hero__camera-icon,
    .gallery-hero__mascot,
    .gallery-hero__photo,
    .gallery-hero__star {
        transition:
            transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .gallery-hero__visual:hover
    .gallery-hero__artwork {
        --gallery-hero-artwork-hover-y: -3px;
    }

    /* Camera rises slightly within the frame. */
    .gallery-hero__visual:hover
    .gallery-hero__camera {
        transform:
            translateX(-50%)
            translateY(-5px);
    }

    /* Camera button compresses downward as though pressed. */
    .gallery-hero__visual:hover
    .gallery-hero__camera-button {
        transform:
            translateY(4px)
            scaleY(0.94);
    }

    /* Libya Toys icon rises and grows subtly in the lens. */
    .gallery-hero__visual:hover
    .gallery-hero__camera-icon {
        transform:
            translateX(-50%)
            translateY(-4px)
            scale(1.07);
    }

    /*
     * Mascots tilt farther outward.
     * Base positions remain unchanged because transform-origin
     * stays at their feet.
     */
    .gallery-hero__visual:hover
    .gallery-hero__mascot--pink {
        transform:
            translateY(-2px)
            rotate(-14deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__mascot--blue {
        transform:
            translateY(-2px)
            rotate(14deg);
    }

    /* Centre photo lifts straight upward. */
    .gallery-hero__visual:hover
    .gallery-hero__photo--one {
        transform:
            translateX(-50%)
            translateY(-10px);
    }

    /*
     * Side photos open outward, but more gently than
     * the mascot rotation.
     */
    .gallery-hero__visual:hover
    .gallery-hero__photo--two {
        transform:
            translateY(-3px)
            rotate(-27deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__photo--three {
        transform:
            translateY(-3px)
            rotate(27deg);
    }

    /* Stars lift and twist independently. */
    .gallery-hero__visual:hover
    .gallery-hero__star--yellow {
        transform:
            translateY(-5px)
            rotate(-8deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__star--blue {
        transform:
            translateY(-6px)
            rotate(10deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__star--white {
        transform:
            translateY(-5px)
            rotate(-7deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__star--pink {
        transform:
            translateY(-4px)
            rotate(9deg);
    }
}

/* Gallery Hero responsive artwork bundle */
@media (min-width: 901px) and (max-width: 1100px) {
    .gallery-hero__inner {
        width: min(100% - 48px, var(--page-width));
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        align-items: center;
        gap: 28px;
    }

    .gallery-hero__content {
        min-width: 0;
    }

    .gallery-hero__visual {
        position: relative;
        width: 380px;
        min-width: 0;
        min-height: 320px;
        display: block;
        justify-self: end;
    }

    .gallery-hero__artwork {
        --gallery-hero-artwork-scale: 0.68;
        --gallery-hero-artwork-shift-x: 0;
    }
}

@media (min-width: 681px) and (max-width: 900px) {
    .gallery-hero__inner {
        width: min(100% - 48px, var(--page-width));
        display: grid;
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: center;
        gap: 20px;
    }

    .gallery-hero__content {
        min-width: 0;
        max-width: 390px;
    }

    .gallery-hero__visual {
        position: relative;
        width: 300px;
        min-width: 0;
        min-height: 260px;
        display: block;
        justify-self: end;
    }

    .gallery-hero__artwork {
        --gallery-hero-artwork-scale: 0.56;
        --gallery-hero-artwork-shift-x: 0;
    }
}

@media (max-width: 680px) {
    .gallery-hero__visual {
        display: block;
        min-height: 230px;
    }

    .gallery-hero__artwork {
        --gallery-hero-artwork-scale: 0.54;
        --gallery-hero-artwork-shift-x: 0;
    }
}

@media (max-width: 360px) {
    .gallery-hero__visual {
        min-height: 210px;
    }

    .gallery-hero__artwork {
        --gallery-hero-artwork-scale: 0.50;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-hero__button,
    .gallery-album-card__footer a,
    .gallery-filter,
    .gallery-pagination__button,
    .gallery-connect__button,
    .gallery-album-detail__back,
    .gallery-album-detail__tab {
        transition: none;
    }

    .gallery-hero__button:hover,
    .gallery-album-card__footer a:hover,
    .gallery-filter:hover,
    .gallery-filter.is-active,
    .gallery-pagination__button:hover,
    .gallery-pagination__button[aria-current="page"],
    .gallery-connect__button:hover,
    .gallery-album-detail__back:hover,
    .gallery-album-detail__tab:hover,
    .gallery-album-detail__tab.is-active {
        transform: none;
    }
}


/* Gallery Hero reduced-motion interaction reset */
@media (prefers-reduced-motion: reduce) {
    .gallery-hero__content,
    .gallery-hero__visual {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .gallery-hero__content,
    .gallery-hero__visual,
    .gallery-hero__artwork,
    .gallery-hero__camera,
    .gallery-hero__camera-button,
    .gallery-hero__camera-icon,
    .gallery-hero__mascot,
    .gallery-hero__photo,
    .gallery-hero__star,
    .gallery-hero__button {
        transition: none;
    }

    .gallery-hero__content.is-reveal-ready,
    .gallery-hero__content.is-revealed,
    .gallery-hero__visual.is-reveal-ready,
    .gallery-hero__visual.is-revealed {
        opacity: 1;
        transform: none;
    }

    .gallery-hero__visual:hover
    .gallery-hero__artwork {
        --gallery-hero-artwork-hover-y: 0px;
    }

    .gallery-hero__visual:hover
    .gallery-hero__camera {
        transform: translateX(-50%);
    }

    .gallery-hero__visual:hover
    .gallery-hero__camera-button {
        transform: none;
    }

    .gallery-hero__visual:hover
    .gallery-hero__camera-icon {
        transform: translateX(-50%);
    }

    .gallery-hero__visual:hover
    .gallery-hero__mascot--pink {
        transform: rotate(-10deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__mascot--blue {
        transform: rotate(10deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__photo--one {
        transform: translateX(-50%);
    }

    .gallery-hero__visual:hover
    .gallery-hero__photo--two {
        transform: rotate(-24.1deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__photo--three {
        transform: rotate(24.1deg);
    }

    .gallery-hero__visual:hover
    .gallery-hero__star {
        transform: none;
    }

    .gallery-hero__button:hover,
    .gallery-hero__button:focus-visible,
    .gallery-hero__button:active {
        transform: none;
    }
}

/* Gallery mobile definitive visibility fix */
@media (max-width: 680px) {
    /*
     * The status line is used as the small reveal trigger.
     * Until it is reached, hide only the GRID as one unit.
     */
    .gallery-collection__grid,
    .gallery-collection__grid.is-reveal-ready,
    .gallery-collection__grid.is-revealed,
    .gallery-collection__grid.is-reveal-ready:not(.is-revealed) {
        opacity: 0 !important;
        visibility: visible !important;
        transform: none !important;
        transition:
            opacity 360ms ease !important;
    }

    /*
     * Once the mobile trigger fires, the grid is definitively visible.
     */
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid,
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid.is-reveal-ready,
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid.is-revealed,
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid.is-reveal-ready:not(.is-revealed) {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

    /*
     * CRITICAL:
     * Gallery JS already uses [hidden] for pagination/filtering.
     *
     * Therefore every card WITHOUT [hidden] must be visible,
     * regardless of any stale reveal class left by previous passes.
     */
    .gallery-collection
    .gallery-album-card--grid:not([hidden]),
    .gallery-collection
    .gallery-album-card--grid.is-gallery-card-reveal-ready:not([hidden]),
    .gallery-collection
    .gallery-album-card--grid.is-gallery-card-revealed:not([hidden]) {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /*
     * Preserve the smooth filter/page fade you already approved.
     */
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid.is-gallery-switching {
        opacity: 0.24 !important;
        transform: translateY(6px) !important;
    }
}

@media (max-width: 680px) and (prefers-reduced-motion: reduce) {
    .gallery-collection__grid,
    .gallery-collection.is-mobile-gallery-visible
    .gallery-collection__grid {
        opacity: 1 !important;
        transition: none !important;
    }

    .gallery-collection
    .gallery-album-card--grid:not([hidden]) {
        opacity: 1 !important;
        visibility: visible !important;
        animation: none !important;
        transition: none !important;
    }
}
/* Gallery Album detail interactions */

/* First-load entrance */
@keyframes gallery-album-detail-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes gallery-album-detail-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gallery-album-panel-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.gallery-album-detail__back {
    animation:
        gallery-album-detail-fade-up
        480ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        50ms
        backwards;

    transition:
        transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
        color 240ms ease,
        background-color 240ms ease;
}

.gallery-album-detail__header {
    animation:
        gallery-album-detail-fade-up
        560ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        110ms
        both;
}

.gallery-album-detail__category,
.gallery-album-detail__header h1,
.gallery-album-detail__meta {
    animation:
        gallery-album-detail-fade-up
        500ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        both;
}

.gallery-album-detail__category {
    animation-delay: 190ms;
}

.gallery-album-detail__header h1 {
    animation-delay: 235ms;
}

.gallery-album-detail__meta {
    animation-delay: 280ms;
}

/* Back + tabs */
.gallery-album-detail__back:hover {
    transform: translateY(-2px);
}

.gallery-album-detail__back:active {
    transform: translateY(1px) scale(0.98);
}

.gallery-album-detail__tab {
    transition:
        transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
        color 240ms ease,
        background-color 240ms ease;
}

.gallery-album-detail__tab:active {
    transform: translateY(1px) scale(0.98);
}

/*
 * Featured image first-load entrance.
 *
 * Header begins at 110ms and runs for 560ms.
 * The image waits until 480ms so the top area is visibly
 * established before the photograph follows it.
 *
 * "backwards" applies the hidden keyframe during the delay,
 * but releases transform after the animation finishes so
 * normal image hover movement still works.
 */
.gallery-album-detail__featured
.gallery-album-detail__image {
    animation:
        gallery-album-detail-fade-up
        540ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        480ms
        backwards;
}

/* Photos + videos */
.gallery-album-detail__image,
.gallery-album-detail__video,
.gallery-album-detail__videos-empty,
.gallery-album-detail__empty {
    opacity: 1;
    transform: none;

    transition:
        opacity 440ms ease,
        transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 300ms ease;
}

.gallery-album-detail__image img {
    transition:
        transform 380ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/*
 * JS adds this only immediately before observation.
 * Static layout dimensions are never changed.
 */
.gallery-album-detail__image.is-detail-reveal-ready:not(
    .is-detail-revealed
),
.gallery-album-detail__video.is-detail-reveal-ready:not(
    .is-detail-revealed
),
.gallery-album-detail__videos-empty.is-detail-reveal-ready:not(
    .is-detail-revealed
),
.gallery-album-detail__empty.is-detail-reveal-ready:not(
    .is-detail-revealed
) {
    opacity: 0;
    transform: translateY(14px);
}

.gallery-album-detail__image.is-detail-revealed,
.gallery-album-detail__video.is-detail-revealed,
.gallery-album-detail__videos-empty.is-detail-revealed,
.gallery-album-detail__empty.is-detail-revealed {
    opacity: 1;
    transform: none;
}

/* Smooth Photos / Videos panel change */
.gallery-album-detail__panel.is-detail-panel-entering {
    animation:
        gallery-album-panel-enter
        360ms
        cubic-bezier(0.2, 0.7, 0.2, 1)
        both;
}

/* Desktop richness only */
@media (min-width: 1101px) and (hover: hover) and (pointer: fine) {
    .gallery-album-detail__image:hover,
    .gallery-album-detail__video:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(34, 34, 34, 0.08);
    }

    .gallery-album-detail__image:hover img {
        transform: scale(1.012);
    }

    /*
     * Featured photo is much larger, so keep its movement even
     * more restrained than the supporting masonry images.
     */
    .gallery-album-detail__featured
    .gallery-album-detail__image:hover {
        transform: translateY(-2px);
    }

    .gallery-album-detail__featured
    .gallery-album-detail__image:hover img {
        transform: scale(1.006);
    }
}

/*
 * Tablet:
 * keep the established simpler opacity-only reveal.
 */
@media (min-width: 681px) and (max-width: 1100px) {
    .gallery-album-detail__back,
    .gallery-album-detail__header {
        animation:
            gallery-album-detail-fade
            420ms
            ease
            both;
    }

    .gallery-album-detail__category,
    .gallery-album-detail__header h1,
    .gallery-album-detail__meta {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .gallery-album-detail__featured
    .gallery-album-detail__image {
        animation:
            gallery-album-detail-fade
            420ms
            ease
            340ms
            backwards;
    }

    .gallery-album-detail__image,
    .gallery-album-detail__video,
    .gallery-album-detail__videos-empty,
    .gallery-album-detail__empty {
        transition:
            opacity 420ms ease;
    }

    .gallery-album-detail__image.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__video.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__videos-empty.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__empty.is-detail-reveal-ready:not(
        .is-detail-revealed
    ) {
        opacity: 0;
        transform: none;
    }
}

/* Mobile */
@media (max-width: 680px) {
    .gallery-album-detail__back,
    .gallery-album-detail__header {
        animation:
            gallery-album-detail-fade
            360ms
            ease
            both;
    }

    .gallery-album-detail__category,
    .gallery-album-detail__header h1,
    .gallery-album-detail__meta {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .gallery-album-detail__featured
    .gallery-album-detail__image {
        animation:
            gallery-album-detail-fade
            360ms
            ease
            300ms
            backwards;
    }

    .gallery-album-detail__image,
    .gallery-album-detail__video,
    .gallery-album-detail__videos-empty,
    .gallery-album-detail__empty {
        transition:
            opacity 360ms ease;
    }

    .gallery-album-detail__image.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__video.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__videos-empty.is-detail-reveal-ready:not(
        .is-detail-revealed
    ),
    .gallery-album-detail__empty.is-detail-reveal-ready:not(
        .is-detail-revealed
    ) {
        opacity: 0;
        transform: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-album-detail__back,
    .gallery-album-detail__header,
    .gallery-album-detail__category,
    .gallery-album-detail__header h1,
    .gallery-album-detail__meta,
    .gallery-album-detail__image,
    .gallery-album-detail__image img,
    .gallery-album-detail__video,
    .gallery-album-detail__videos-empty,
    .gallery-album-detail__empty,
    .gallery-album-detail__tab,
    .gallery-album-detail__panel {
        animation: none;
        transition: none;
    }

    .gallery-album-detail__image.is-detail-reveal-ready,
    .gallery-album-detail__image.is-detail-revealed,
    .gallery-album-detail__video.is-detail-reveal-ready,
    .gallery-album-detail__video.is-detail-revealed,
    .gallery-album-detail__videos-empty.is-detail-reveal-ready,
    .gallery-album-detail__videos-empty.is-detail-revealed,
    .gallery-album-detail__empty.is-detail-reveal-ready,
    .gallery-album-detail__empty.is-detail-revealed {
        opacity: 1;
        transform: none;
    }

    .gallery-album-detail__back:hover,
    .gallery-album-detail__back:active,
    .gallery-album-detail__tab:hover,
    .gallery-album-detail__tab.is-active,
    .gallery-album-detail__tab:active,
    .gallery-album-detail__image:hover,
    .gallery-album-detail__image:hover img,
    .gallery-album-detail__video:hover {
        transform: none;
    }
}

/* Stage 14 Arabic Gallery typography */
html[dir="rtl"] .gallery-hero__eyebrow,
html[dir="rtl"] .gallery-latest__heading > p,
html[dir="rtl"] .gallery-collection__heading > p,
html[dir="rtl"] .gallery-connect__eyebrow,
html[dir="rtl"] .gallery-album-missing__inner > p {
    font-size: var(--arabic-text-eyebrow);
    font-weight: var(--arabic-weight-label);
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .gallery-hero__title,
html[dir="rtl"] .gallery-latest__heading h2,
html[dir="rtl"] .gallery-collection__heading h2,
html[dir="rtl"] .gallery-connect__content h2,
html[dir="rtl"] .gallery-album-missing__inner h1,
html[dir="rtl"] .gallery-album-detail__header h1 {
    font-family: inherit;
    line-height: 1.3;
    letter-spacing: 0;
}

html[dir="rtl"] .gallery-hero__description,
html[dir="rtl"] .gallery-album-detail__empty,
html[dir="rtl"] .gallery-album-detail__videos-empty {
    font-size: var(--arabic-text-body);
    font-weight: var(--arabic-weight-body);
    line-height: var(--arabic-line-body);
    letter-spacing: 0;
}

html[dir="rtl"] .gallery-latest__heading > span,
html[dir="rtl"] .gallery-collection__heading > span,
html[dir="rtl"] .gallery-connect__description,
html[dir="rtl"] .gallery-album-missing__inner > span {
    font-size: var(--arabic-text-supporting);
    font-weight: var(--arabic-weight-body);
    line-height: var(--arabic-line-supporting);
    letter-spacing: 0;
}

html[dir="rtl"] .gallery-album-card__content h3,
html[dir="rtl"] .gallery-album-detail__video h2 {
    font-family: inherit;
    font-size: var(--arabic-text-card-heading);
    font-weight: var(--arabic-weight-label);
    line-height: 1.5;
    letter-spacing: 0;
}

html[dir="rtl"] .gallery-hero__button,
html[dir="rtl"] .gallery-album-card__footer a,
html[dir="rtl"] .gallery-filter,
html[dir="rtl"] .gallery-connect__button,
html[dir="rtl"] .gallery-album-missing__inner > a,
html[dir="rtl"] .gallery-album-detail__back,
html[dir="rtl"] .gallery-album-detail__tab {
    font-size: var(--arabic-text-button);
    font-weight: var(--arabic-weight-label);
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}

html[dir="rtl"] .gallery-album-card__category,
html[dir="rtl"] .gallery-album-card__footer time,
html[dir="rtl"] .gallery-collection__status,
html[dir="rtl"] .gallery-album-detail__category,
html[dir="rtl"] .gallery-album-detail__meta time {
    font-size: var(--arabic-text-meta);
    font-weight: var(--arabic-weight-label);
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
}


/* Stage 14 Arabic Gallery final refinements */
html[dir="rtl"] .gallery-connect__description {
    font-size: calc(var(--arabic-text-body) + 1px);
    line-height: var(--arabic-line-body);
}
