/* B&A Gallery — single case page */

.bagallery-case {
	--bagallery-accent: #922872;
	--bagallery-accent-light: #d9aecd;
	--bagallery-dot: #c9a8d4;
	--bagallery-dot-active: #5c2d6e;
	max-width: 960px;
	margin: 4rem auto 6rem;
	padding: 0 1.5rem;
	text-align: center;
}

.bagallery-case__title {
	margin: 0 0 2rem;
	font-family: "Playfair Display", "Times New Roman", serif;
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 500;
	line-height: 1.2;
	color: #222;
}

.bagallery-case__nav {
	display: inline-flex;
	justify-content: center;
	gap: 0.35rem;
	margin: 0 0 2.5rem;
}

.bagallery-case__btn {
	border: 0;
	border-radius: 6px;
	padding: 0.35rem 1.35rem;
	font-size: 1rem;
	line-height: 1.4;
	color: #fff;
	cursor: pointer;
	text-transform: lowercase;
	transition: opacity 0.2s ease;
}

.bagallery-case__btn:hover,
.bagallery-case__btn:focus {
	opacity: 0.88;
}

.bagallery-case__btn--prev {
	background: var(--bagallery-accent-light);
}

.bagallery-case__btn--next {
	background: var(--bagallery-accent);
}

.bagallery-case__carousel {
	position: relative;
	margin: 0 auto;
}

.bagallery-case__carousel .carousel-inner {
	overflow: hidden;
}

.bagallery-case__comparison {
	display: flex;
	align-items: stretch;
	margin: 0 auto;
	max-width: 100%;
}

.bagallery-case__half {
	flex: 1 1 50%;
	width: 50%;
}

.bagallery-case__half img {
	width: 100%;
	height: auto;
	display: block;
	vertical-align: top;
}

.bagallery-case__label {
	margin: 0.85rem 0 0;
	font-size: 1rem;
	line-height: 1.4;
	color: #333;
}

.bagallery-case__caption {
	margin: 1.25rem auto 0;
	max-width: 40rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #666;
}

.bagallery-case__dots {
	position: static;
	left: auto;
	right: auto;
	bottom: auto;
	width: auto;
	margin: 2rem auto 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.65rem;
	list-style: none;
}

.bagallery-case__dots li {
	width: 12px;
	height: 12px;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--bagallery-dot);
	text-indent: -9999px;
	overflow: hidden;
	cursor: pointer;
}

.bagallery-case__dots li.active {
	background: var(--bagallery-dot-active);
}

/* Description + patient profile */

.bagallery-case__details {
	margin: 3.5rem auto 0;
	max-width: 60rem;
	text-align: left;
}

.bagallery-case__section + .bagallery-case__section {
	margin-top: 2.75rem;
}

.bagallery-case__section-title {
	margin: 0 0 1rem;
	font-family: "Playfair Display", "Times New Roman", serif;
	font-size: clamp(1.9rem, 4vw, 2.9rem);
	font-weight: 500;
	line-height: 1.2;
	color: #222;
}

.bagallery-case__description {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.6;
	color: #555;
}

.bagallery-case__profile {
	margin: 0;
	display: block;
}

.bagallery-case__profile-row {
	margin: 0 0 1.35rem;
}

.bagallery-case__profile-row:last-child {
	margin-bottom: 0;
}

.bagallery-case__profile-label {
	margin: 0 0 0.2rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #333;
}

.bagallery-case__profile-value {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.5;
	color: #666;
}

/* Legacy shortcode wrapper fallback */
.bagallery-container {
	margin-bottom: 10px;
	padding-bottom: 32px;
	display: block;
}
/* Gallery set page */

.bagallery-set {
    --bagallery-accent: #b55c9a;
    max-width: 90%;
    margin: 100px auto;
}

.bagallery-set__title {
    margin: 0 0 2rem;
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.2;
}

.bagallery-set-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 0;
}

.bagallery-set-grid__item {
    margin: 0;
}

.bagallery-set-grid__preview {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bagallery-set-grid__preview:hover,
.bagallery-set-grid__preview:focus {
    opacity: 0.98;
}

.bagallery-set-grid__image-frame {
    border: 1px solid var(--bagallery-accent);
    overflow: hidden;
    background: #fff;
}

.bagallery-set-grid__images {
    display: flex;
    align-items: stretch;
    aspect-ratio: 2 / 1;
    background: #f8f8f8;
}

.bagallery-set-grid__image {
    flex: 1 1 50%;
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0;
}

.bagallery-set-grid__title {
    margin: 1rem 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: center;
    font-weight: 500;
}

.bagallery-set-grid__title a {
    color: var(--bagallery-accent);
    text-decoration: none;
    display: inline-block;
    border-bottom: 1px solid var(--bagallery-accent);
    padding-bottom: 0.2rem;
}

.bagallery-set-grid__title a:hover,
.bagallery-set-grid__title a:focus {
    opacity: 0.85;
}

.bagallery-set-grid__sets {
    margin: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #666;
    font-style: italic;
}

@media (max-width: 991px) {
    .bagallery-set-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

@media (max-width: 599px) {
    .bagallery-set-grid {
        grid-template-columns: 1fr;
    }

    .bagallery-set-grid__title {
        font-size: 1.15rem;
    }
}

/* Gallery sets index */

.bagallery-sets-index__title {
    margin: 0 0 1.5rem;
    text-align: center;
}

.bagallery-sets-index__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

.bagallery-sets-index__item {
    margin: 0;
}

.bagallery-sets-index__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bagallery-sets-index__image-wrap {
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid #d8c8d8;
    aspect-ratio: 4 / 3;
}

.bagallery-sets-index__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bagallery-sets-index__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ececec 0%, #d9d9d9 100%);
}

.bagallery-sets-index__name {
    margin: 1rem 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.3;
    text-align: center;
    font-weight: 500;
}

.bagallery-sets-index__count {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
    color: #8a8a8a;
    font-style: italic;
}

.bagallery-sets-index__link:hover .bagallery-sets-index__name,
.bagallery-sets-index__link:focus .bagallery-sets-index__name {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .bagallery-sets-index__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}

@media (max-width: 599px) {
    .bagallery-sets-index__grid {
        grid-template-columns: 1fr;
    }

    .bagallery-sets-index__name {
        font-size: 1.15rem;
    }
}
