/* Artwork images always keep their complete, uncropped aspect ratio. */
.work-image,
.collection-image,
.archive-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.work-image img,
.exhibition-work:nth-child(n) .work-image img,
.collection-image img,
.collection-card:nth-child(n) .collection-image img,
.archive-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.work-image img,
.exhibition-work:nth-child(n) .work-image img,
.collection-image img,
.collection-card:nth-child(n) .collection-image img {
    filter: saturate(1.08);
}

.archive-item img {
    filter: none;
}

.work-image:hover img,
.collection-image:hover img,
.archive-item:hover img {
    transform: none;
}

.selected-work-d4 img {
    object-fit: contain;
}

.statement-photo,
.about-d4-portrait {
    align-self: start;
    min-height: 0;
    height: auto;
    overflow: visible;
}

.statement-photo img,
.about-d4-portrait img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

/* Availability is visible on every work card; reserved and sold works have no enquiry link. */
.work-caption-copy,
.collection-title-wrap {
    min-width: 0;
}

.work-availability {
    display: block;
    margin-top: .45rem;
    color: #625e56;
    font-size: .62rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.status-reserved,
.status-sold {
    color: #8f3029 !important;
}

.status-sold-reproduction {
    color: #a6502f !important;
}

.work-availability-link {
    width: max-content;
    max-width: 100%;
    text-decoration-thickness: 1px;
}

.availability-action {
    align-self: start;
    color: #8f3029;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: right;
    text-transform: uppercase;
    white-space: nowrap;
}

.work-unavailable-d4 {
    display: grid;
    gap: .65rem;
    margin-top: auto;
    padding: 1.2rem;
    border: 1px solid currentColor;
    background: rgba(143, 48, 41, .08);
}

.work-unavailable-d4 strong {
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.work-unavailable-d4 span {
    color: inherit;
    font: 400 1rem/1.5 Georgia, serif;
}

.work-unavailable-d4 a {
    width: max-content;
    margin-top: .4rem;
    color: inherit;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.work-reproduction-d4 {
    display: grid;
    gap: .75rem;
    margin: 1.5rem 0;
    padding: 1.2rem;
    border: 1px solid #b96c4e;
    background: rgba(185, 108, 78, .1);
    color: var(--bone);
}

.work-reproduction-d4 strong {
    color: #d98765;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.work-reproduction-d4 span {
    font: 400 1rem/1.55 Georgia, serif;
}

.contact-reproduction-d4 {
    margin-top: 0;
    color: var(--ink);
}

.contact-reproduction-d4 strong {
    color: #98462a;
}

.collection-shooting-cta {
    display: inline-block;
    padding-bottom: .3rem;
    border-bottom: 1px solid;
    font-size: .68rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.shooting-page-d4 {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
    min-height: calc(100vh - 64px);
}

.shooting-intro-d4 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(5rem, 8vw, 9rem) clamp(2rem, 6vw, 7rem);
    background: #181714;
}

.shooting-intro-d4 h1 {
    margin: .25em 0;
    font: 400 clamp(4rem, 8vw, 8rem)/.82 Georgia, serif;
    letter-spacing: -.06em;
}

.shooting-intro-d4 > p:last-child {
    max-width: 620px;
    color: #bbb7ae;
    font: 400 1.1rem/1.6 Georgia, serif;
}

.shooting-form-wrap-d4 {
    padding: clamp(5rem, 8vw, 9rem) clamp(1.5rem, 5vw, 6rem);
    background: var(--paper);
    color: var(--ink);
}

.shooting-desired-time-d4 {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
}

.shooting-phone-note-d4 {
    margin: -.5rem 0 .25rem;
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--ember);
    background: rgba(188, 74, 50, .08);
    font: 400 1rem/1.55 Georgia, serif;
}

[data-shooting-type-other][hidden] {
    display: none !important;
}

.clean-date-control-d4 {
    position: relative;
    display: block;
    width: 100%;
    min-height: 3.25rem;
    border-bottom: 1px solid #77736a;
}

.clean-date-value-d4 {
    display: flex;
    min-height: 3.25rem;
    align-items: center;
    padding: .8rem 0;
    font: 400 1.25rem Georgia, serif;
}

.form-d4 .clean-date-control-d4 input.clean-date-native-d4 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.clean-date-control-d4:focus-within {
    outline: 2px solid var(--ember);
    outline-offset: 4px;
}

.shooting-slots-d4 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.shooting-slots-d4 legend {
    grid-column: 1 / -1;
    margin-bottom: .7rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.shooting-slot-choice-d4 {
    display: block !important;
    position: relative;
}

.shooting-slot-choice-d4 input {
    position: absolute;
    opacity: 0;
}

.shooting-slot-choice-d4 > span {
    display: grid;
    gap: .25rem;
    min-height: 92px;
    padding: 1rem;
    border: 1px solid #aaa49a;
    background: #fff;
    cursor: pointer;
}

.shooting-slot-choice-d4 input:checked + span {
    border-color: var(--ember);
    outline: 2px solid var(--ember);
}

.shooting-slot-choice-d4 input:focus-visible + span {
    outline: 3px solid var(--ember);
    outline-offset: 2px;
}

.shooting-slot-choice-d4 strong {
    font: 400 1rem/1.3 Georgia, serif;
}

.shooting-slot-choice-d4 small {
    color: #7b3f2f;
    font-weight: 800;
}

.shooting-success-d4,
.shooting-empty-d4 {
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid #8c9d87;
    background: #e3eadf;
}

.shooting-success-d4 strong {
    font: 400 2rem Georgia, serif;
}

.shooting-success-d4 a,
.shooting-empty-d4 a {
    width: max-content;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Fluid gallery sizing for narrow desktop windows and tablets. */
@media (max-width: 1100px) {
    .exhibition-flow,
    .collection-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 3vw, 2.5rem);
        padding-right: clamp(1.2rem, 3vw, 2.5rem);
        padding-left: clamp(1.2rem, 3vw, 2.5rem);
    }

    .exhibition-work,
    .exhibition-work:nth-child(n),
    .collection-card,
    .collection-card:nth-child(n) {
        grid-column: auto;
        margin-bottom: 0;
        min-width: 0;
    }

    .work-image,
    .collection-image {
        aspect-ratio: auto;
    }

    .work-image img,
    .exhibition-work:nth-child(n) .work-image img,
    .collection-image img,
    .collection-card:nth-child(n) .collection-image img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .work-caption,
    .collection-meta {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .work-caption > a,
    .collection-meta > a,
    .work-caption > .availability-action,
    .collection-meta > .availability-action {
        grid-column: 2;
        white-space: normal;
        text-align: left;
    }

    .archive-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .archive-item,
    .archive-item:nth-child(n) {
        grid-column: auto;
        min-height: clamp(180px, 24vw, 260px);
    }
}

@media (max-width: 900px) {
    .shooting-page-d4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .exhibition-flow,
    .collection-grid {
        grid-template-columns: minmax(0, min(100%, 520px));
        justify-content: center;
    }

    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-item,
    .archive-item:nth-child(n) {
        min-height: clamp(170px, 43vw, 250px);
    }

    .shooting-slots-d4 {
        grid-template-columns: 1fr;
    }

    .shooting-desired-time-d4 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-item,
    .archive-item:nth-child(n) {
        min-height: min(110vw, 480px);
    }
}
