.cutout-card {
    max-width: 900px;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cutout-row .card {
    margin-bottom: 1.5rem;
}

.cutout-drop {
    border: 2px dashed #adb5bd;
    border-radius: 6px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.cutout-drop:hover,
.cutout-drop:focus,
.cutout-drop.is-over {
    border-color: #007bff;
    background-color: #f1f7ff;
    outline: none;
}

.cutout-drop-icon {
    font-size: 2.5rem;
    color: #6c757d;
}

.cutout-chosen {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.cutout-chosen img {
    max-height: 90px;
    max-width: 140px;
    border-radius: 4px;
    margin-right: 1rem;
}

.cutout-gif {
    height: 140px;
}

.cutout-took {
    margin-top: .5rem;
    font-size: .9rem;
}

.cutout-fact {
    max-width: 34rem;
    margin: .75rem auto 0;
    font-style: italic;
}

.cutout-checkerboard {
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #d9d9d9 25%, transparent 25%, transparent 75%, #d9d9d9 75%),
        linear-gradient(45deg, #d9d9d9 25%, transparent 25%, transparent 75%, #d9d9d9 75%);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
}

.cutout-rating .btn {
    margin-right: .25rem;
}

.cutout-banner {
    max-width: 900px;
}

.table td.text-right, .table th.text-right {
    font-variant-numeric: tabular-nums;
    padding-right: 1rem;
}

.cutout-compare {
    --split: 50%;
    --ratio: 3 / 2;
    position: relative;
    width: 100%;
    aspect-ratio: var(--ratio);
    overflow: hidden;
    border-radius: 6px;
    background-color: #f1f1f1;
    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
}

.cutout-compare-before,
.cutout-compare-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cutout-compare-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: inset(0 0 0 var(--split));
}

.cutout-compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--split);
    width: 2px;
    margin-left: -1px;
    background-color: #fff;
    box-shadow: 0 0 4px rgba(0, 0, 0, .5);
    pointer-events: none;
}

.cutout-compare-handle {
    position: absolute;
    top: 50%;
    left: var(--split);
    transform: translate(-50%, -50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: .8rem;
    pointer-events: none;
}

.cutout-compare-handle .la-angle-left {
    margin-right: 2px;
}

.cutout-compare-handle .la-angle-right {
    margin-left: 2px;
}

.cutout-compare-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: .15rem .5rem;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, .8);
    color: #6c757d;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    pointer-events: none;
}

.cutout-compare-label-left {
    left: .75rem;
}

.cutout-compare-label-right {
    right: .75rem;
}

.cutout-compare-range {
    /* Keyboard control only. Mouse and touch are handled on the container,
       so the value maps exactly to where the finger is. */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.cutout-compare:focus-within .cutout-compare-handle {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, .5);
}

/* Django admin change page: inline before and after photos. */
.cutout-admin-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cutout-admin-previews figure {
    margin: 0;
    max-width: 420px;
}

.cutout-admin-previews figcaption {
    margin-top: .25rem;
    color: #666;
    font-size: 12px;
}

.cutout-admin-preview {
    display: block;
    max-width: 100%;
    max-height: 420px;
    border-radius: 4px;
}

.cutout-admin-thumbs {
    display: inline-flex;
    gap: 4px;
}

.cutout-admin-thumb {
    width: 64px;
    height: 48px;
    object-fit: contain;
    border-radius: 3px;
    background-color: #eee;
}
