.com-dogshow-shows,
.com-dogshow-show {
    max-width: 1200px;
    margin-inline: auto;
}

.dogshow-show-card,
.dogshow-result-group,
.dogshow-placement-card {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0;
}

.dogshow-show-card {
    position: relative;
    overflow: visible;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dogshow-show-card--has-preview .card-body {
    position: relative;
    z-index: 2;
}

.com-dogshow-shows .dogshow-best-in-show-preview {
    position: absolute;
    z-index: 30;
    top: 50%;
    right: clamp(1rem, 3vw, 2rem);
    width: clamp(11rem, 18vw, 15rem);
    max-width: calc(100% - 2rem);
    padding: 0.35rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: var(--bs-body-bg, #fff);
    box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(0.75rem, -50%) rotate(5deg) scale(0.86);
    transform-origin: center;
    transition:
        opacity 0.35s ease 0s,
        transform 0.35s ease 0s,
        visibility 0s linear 0.35s;
}

.com-dogshow-shows .dogshow-best-in-show-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 16rem;
    object-fit: contain;
}

.com-dogshow-shows .dogshow-best-in-show-caption {
    padding: 0.35rem 0.25rem 0.1rem;
    color: var(--bs-body-color, #212529);
    font-size: 0.75rem;
    line-height: 1.2;
    text-align: center;
}

.dogshow-best-in-show-caption strong,
.dogshow-best-in-show-caption span {
    display: block;
}

.dogshow-show-card:hover .dogshow-best-in-show-preview,
.dogshow-show-card:focus-within .dogshow-best-in-show-preview {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%) rotate(5deg) scale(1);
    transition-delay: 0.18s, 0.18s, 0.18s;
}

.dogshow-show-card:hover,
.dogshow-show-card:focus-within {
    z-index: 20;
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 0.8rem rgba(0, 0, 0, 0.12);
}

.dogshow-show-card a {
    color: inherit;
    text-decoration: none;
}

.dogshow-show-card a:hover,
.dogshow-show-card a:focus {
    color: var(--bs-primary);
    text-decoration: none;
}

.dogshow-result-group {
    background: var(--bs-body-bg, #fff);
}

.dogshow-group-image,
.dogshow-image {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.dogshow-group-image {
    width: 100%;
    height: auto;
}

.dogshow-image {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    margin-inline: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.dogshow-image-link {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    color: inherit;
    cursor: zoom-in;
    text-decoration: none;
}

.dogshow-image-link:focus-visible {
    outline: 3px solid var(--bs-primary, #0d6efd);
    outline-offset: 3px;
}

.dogshow-placement-column:hover .dogshow-image {
    transform: scale(1.025);
}

html.dogshow-lightbox-open {
    overflow: hidden;
}

.dogshow-lightbox {
    width: fit-content;
    max-width: 94vw;
    max-height: 94vh;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
}

.dogshow-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.86);
}

.dogshow-lightbox-content {
    position: relative;
}

.dogshow-lightbox-figure {
    margin: 0;
    text-align: center;
}

.dogshow-lightbox-image {
    display: block;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 84vh;
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.65);
    object-fit: contain;
}

.dogshow-lightbox-caption {
    padding-top: 0.65rem;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

.dogshow-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.dogshow-lightbox-close:hover,
.dogshow-lightbox-close:focus-visible {
    background: #000;
}

.dogshow-place {
    color: var(--bs-secondary-color, #6c757d);
    font-weight: 600;
}

.dogshow-pagination .pagination {
    justify-content: center;
    margin-top: 1.5rem;
}

@media (hover: none), (max-width: 767.98px) {
    .dogshow-show-card--has-preview .card-body {
        padding-right: 1rem !important;
    }

    .dogshow-best-in-show-preview {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dogshow-show-card,
    .dogshow-image,
    .dogshow-best-in-show-preview,
    .dogshow-lightbox {
        transition: none;
    }

    .dogshow-show-card:hover,
    .dogshow-show-card:focus-within,
    .dogshow-placement-column:hover .dogshow-image {
        transform: none;
    }
}
