/* Card hover: scale */
.portfolio-item-hover {
    transition: transform 0.3s ease;
}
.portfolio-item-hover:hover {
    transform: scale(1.05);
}

/* Geometry shared by both CSS frameworks (Bootstrap has no utilities for it) */
.gallery-diptych__section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.mxw-4xl {
    max-width: 56rem !important;
}

.mxw-2xl {
    max-width: 42rem !important;
}

.gallery-diptych__head {
    margin-bottom: 2rem;
}

.gallery-diptych__title {
    font-size: 1.875rem;
    margin-bottom: 0.75rem;
}

.gallery-diptych__lead {
    font-size: 1.125rem;
}

.gallery-diptych__stage {
    aspect-ratio: 16 / 9;
}

.gallery-diptych__label {
    top: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    --bs-bg-opacity: 0.9;
}

.gallery-diptych__label--before {
    inset-inline-start: 1rem;
}

.gallery-diptych__label--after {
    inset-inline-end: 1rem;
}

.gallery-diptych__handle {
    width: 2.5rem;
    height: 2.5rem;
}

@media (min-width: 768px) {
    .gallery-diptych__title {
        font-size: 2.25rem;
    }
}

/* gallery v14 — before/after diptych divider */
[data-diptych-stage] {
    --split-pos: 50%;
}

.gallery-diptych__inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: ew-resize;
    touch-action: none;
    user-select: none;
}

.gallery-diptych__img {
    object-fit: cover;
    pointer-events: none;
}

.gallery-diptych__img--before {
    clip-path: inset(0 calc(100% - var(--split-pos)) 0 0);
}

.gallery-diptych__divider {
    --bs-bg-opacity: 0.8;
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split-pos);
    width: 2px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.gallery-diptych__divider > * {
    pointer-events: auto;
}

