@charset "UTF-8";
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins/Poppins-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins/Poppins-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins/Poppins-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins/Poppins-SemiBoldItalic.woff2") format("woff2");
}
.brag-book-gallery-wrapper:not(.disable-custom-font) {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.brag-book-gallery-wrapper:not(.disable-custom-font) * {
  font-family: inherit;
}

body.brag-book-gallery-page:not(.disable-custom-font) .brag-book-gallery-wrapper,
body.brag-book-gallery-page:not(.disable-custom-font) .brag-book-gallery-case-card-details,
body.brag-book-gallery-page:not(.disable-custom-font) .brag-book-gallery-consultation-form,
body.brag-book-gallery-page:not(.disable-custom-font) .brag-book-gallery-favorites-page {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.brag-book-gallery-page li {
  padding-inline: 0;
}
.brag-book-gallery-page li::before {
  display: none !important;
}

.brag-book-gallery-wrapper,
.brag-book-gallery-wrapper *,
.brag-book-gallery-wrapper *::before,
.brag-book-gallery-wrapper *::after {
  box-sizing: border-box;
}

.brag-book-gallery-wrapper {
  --wp--custom--brag-book-gallery--color--black: #030712;
  --wp--custom--brag-book-gallery--color--grey: #4a5565;
  --wp--custom--brag-book-gallery--color--light-grey: #e5e7eb;
  --wp--custom--brag-book-gallery--color--lighter-grey: #f3f4f6;
  --wp--custom--brag-book-gallery--color--lightest-grey: #f9fafb;
  --wp--custom--brag-book-gallery--color--white: #FFF;
  --wp--custom--brag-book-gallery--spacer: 4px;
  --wp--custom--brag-book-gallery--spacer--sm: 8px;
  --wp--custom--brag-book-gallery--spacer--md: 12px;
  --wp--custom--brag-book-gallery--spacer--lg: 16px;
  --wp--custom--brag-book-gallery--spacer--xl: 20px;
  --wp--custom--brag-book-gallery--spacer--2xl: 24px;
  --wp--custom--brag-book-gallery--spacer--3xl: 28px;
  --wp--custom--brag-book-gallery--spacer--4xl: 32px;
  --wp--custom--brag-book-gallery--spacer--5xl: 36px;
  --wp--custom--brag-book-gallery--spacer--6xl: 40px;
  --wp--custom--brag-book-gallery--spacer--7xl: 44px;
  --wp--custom--brag-book-gallery--spacer--8xl: 48px;
  --wp--custom--brag-book-gallery--font-weight--bold: 700;
  --wp--custom--brag-book-gallery--font-weight--semibold: 600;
  --wp--custom--brag-book-gallery--font-weight--regular: 400;
  --wp--custom--brag-book-gallery--text-xs: 12px;
  --wp--custom--brag-book-gallery--text-sm: 14px;
  --wp--custom--brag-book-gallery--text-base: 16px;
  --wp--custom--brag-book-gallery--text-lg: 18px;
  --wp--custom--brag-book-gallery--text-xl: 20px;
  --wp--custom--brag-book-gallery--text-2xl: 24px;
  --wp--custom--brag-book-gallery--text-3xl: 28px;
  --wp--custom--brag-book-gallery--text-4xl: 32px;
  --wp--custom--brag-book-gallery--text-5xl: 36px;
  --wp--custom--brag-book-gallery--text-6xl: 40px;
  --wp--custom--brag-book-gallery--text-7xl: 44px;
  --wp--custom--brag-book-gallery--text-8xl: 48px;
  --wp--custom--brag-book-gallery--rounded: 4px;
  --wp--custom--brag-book-gallery--rounded-full: 10em;
  --wp--custom--brag-book-gallery--transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --wp--custom--brag-book-gallery--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --wp--custom--brag-book-gallery--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --wp--custom--brag-book-gallery--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wp--custom--brag-book-gallery--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wp--custom--brag-book-gallery--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  position: relative;
  width: 100%;
  min-height: 100vh;
  isolation: isolate;
  max-width: 100% !important;
}
.brag-book-gallery-wrapper a {
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-wrapper a:hover {
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-wrapper h1 {
  font-size: var(--wp--custom--brag-book-gallery--text-4xl);
}
.brag-book-gallery-wrapper h2 {
  font-size: var(--wp--custom--brag-book-gallery--text-3xl);
}
.brag-book-gallery-wrapper h3,
.brag-book-gallery-wrapper h4,
.brag-book-gallery-wrapper h5 {
  font-size: var(--wp--custom--brag-book-gallery--text-2xl);
}
@media (min-width: 1024px) {
  .brag-book-gallery-wrapper h1 {
    font-size: var(--wp--custom--brag-book-gallery--text-8xl);
  }
  .brag-book-gallery-wrapper h2 {
    font-size: var(--wp--custom--brag-book-gallery--text-7xl);
  }
}

.brag-book-gallery-container {
  display: flex;
  min-height: 100vh;
  position: relative;
  padding-left: var(--wp--custom--brag-book-gallery--spacer--lg);
  padding-right: var(--wp--custom--brag-book-gallery--spacer--lg);
}
@media (max-width: 1279px) {
  .brag-book-gallery-container {
    flex-direction: column;
  }
}

.brag-book-gallery-sidebar {
  width: 100%;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  box-shadow: inset -1px 0 0 var(--wp--custom--brag-book-gallery--color--lighter-grey);
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  max-inline-size: 100%;
}
@media (max-width: 1279px) {
  .brag-book-gallery-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    transform: translateX(-100%);
    overflow: auto;
    z-index: 1000;
    transition: var(--wp--custom--brag-book-gallery--transition);
    box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  }
  .brag-book-gallery-sidebar.brag-book-gallery-active {
    transform: translateX(0);
  }
}
@media (min-width: 512px) {
  .brag-book-gallery-sidebar {
    max-inline-size: 50%;
  }
}
@media (min-width: 1024px) {
  .brag-book-gallery-sidebar {
    max-inline-size: 382px;
  }
}
@media (max-width: 480px) {
  .brag-book-gallery-sidebar {
    padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  }
}
.brag-book-gallery-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--wp--custom--brag-book-gallery--spacer--4xl);
  padding-bottom: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  box-sizing: border-box;
}
.brag-book-gallery-sidebar-title {
  font-size: var(--wp--custom--brag-book-gallery--text-2xl) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
}
.brag-book-gallery-sidebar-close {
  margin-left: auto;
  width: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  border: none;
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  padding: 0;
}
.brag-book-gallery-sidebar-close svg {
  width: calc(5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  stroke: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-sidebar-close:focus {
  outline: none;
}

.brag-book-gallery-main-content {
  width: 100%;
  flex: 1;
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  padding-inline: 0;
  padding-block: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
@media (min-width: 1280px) {
  .brag-book-gallery-main-content {
    padding-inline: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  }
}

.brag-book-gallery-skip-link {
  position: absolute;
  left: -999em;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.brag-book-gallery-skip-link:focus {
  position: absolute;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
  background: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  text-decoration: none;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  outline: 2px solid var(--wp--custom--brag-book-gallery--color--white, #FFF);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.brag-book-gallery-button {
  padding-block: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  padding-inline: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  background-color: var(--wp--custom--brag-book-gallery--color--black) !important;
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF) !important;
  border: 2px solid var(--wp--custom--brag-book-gallery--color--black) !important;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px) !important;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  margin-block-end: calc(5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
}
.brag-book-gallery-button--full {
  width: 100%;
}
.brag-book-gallery-button--load-more {
  width: auto;
  padding-block: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  padding-inline: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
}
.brag-book-gallery-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.brag-book-gallery-button:hover {
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}

.brag-book-gallery-favorite-button,
.brag-book-gallery-share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(10 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(10 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  border: 0 none;
  background: transparent;
  border-radius: var(--wp--custom--brag-book-gallery--rounded-full);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  position: relative;
  z-index: 30;
  pointer-events: auto;
}
.brag-book-gallery-favorite-button:focus,
.brag-book-gallery-share-button:focus {
  outline: none;
}
.brag-book-gallery-favorite-button svg,
.brag-book-gallery-share-button svg {
  width: var(--wp--custom--brag-book-gallery--spacer--2xl);
  height: var(--wp--custom--brag-book-gallery--spacer--2xl);
  transition: var(--wp--custom--brag-book-gallery--transition);
}

.brag-book-gallery-favorite-button,
.brag-book-gallery-share-button {
  background: transparent;
}
.brag-book-gallery-favorite-button svg,
.brag-book-gallery-share-button svg {
  color: white;
}

.brag-book-gallery-share-button svg {
  fill: white;
  color: white;
}

.brag-book-gallery-favorite-button[data-favorited=true] {
  opacity: 1;
}
.brag-book-gallery-favorite-button[data-favorited=true] svg {
  fill: red;
}

.brag-book-gallery-load-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-block: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}

.brag-book-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #fff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  font-family: inherit;
}
.brag-book-load-more-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.brag-book-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.brag-book-load-more-btn:active:not(:disabled) {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.brag-book-gallery-carousel-wrapper {
  position: relative;
  margin-block: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
}

.brag-book-gallery-carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(33.333% - var(--wp--custom--brag-book-gallery--spacer--lg, 16px) * 2 / 3);
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-block: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  outline: none;
}
.brag-book-gallery-carousel-track::-webkit-scrollbar {
  display: none;
}
.brag-book-gallery-carousel-track.brag-book-gallery-grabbing {
  cursor: grabbing;
  scroll-behavior: auto;
}
@media (max-width: 479px) {
  .brag-book-gallery-carousel-track {
    grid-auto-columns: calc(100% - var(--wp--custom--brag-book-gallery--spacer--lg, 16px));
  }
}
@media (min-width: 480px) and (max-width: 767px) {
  .brag-book-gallery-carousel-track {
    grid-auto-columns: calc(50% - var(--wp--custom--brag-book-gallery--spacer--lg, 16px) / 2);
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-carousel-track {
    grid-auto-columns: calc(33.333% - var(--wp--custom--brag-book-gallery--spacer--lg, 16px) * 2 / 3);
  }
}

.brag-book-gallery-carousel-content {
  position: relative;
  display: flex;
  align-items: center;
}
.brag-book-gallery-carousel-content .brag-book-gallery-favorites-list {
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}

.brag-book-gallery-carousel-item {
  background: linear-gradient(135deg, var(--wp--custom--brag-book-gallery--color--lighter-grey) 0%, var(--wp--custom--brag-book-gallery--color--light-grey) 100%);
  border-radius: var(--wp--custom--brag-book-gallery--spacer--sm);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  display: block;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  transform: scale(1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.brag-book-gallery-carousel-item:hover {
  transform: scale(1.02);
}
.brag-book-gallery-carousel-item:focus {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
  transform: scale(1.02);
}
.brag-book-gallery-carousel-item:focus-visible {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
  transform: scale(1.02);
}
.brag-book-gallery-carousel-item.brag-book-gallery-nudity-revealed .brag-book-gallery-nudity-warning {
  opacity: 0;
  pointer-events: none;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-carousel-item.brag-book-gallery-nudity-revealed .brag-book-gallery-carousel-image img {
  filter: none;
}

.brag-book-gallery-carousel-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.brag-book-gallery-carousel-link:hover {
  text-decoration: none;
}

.brag-book-gallery-item-actions {
  position: absolute;
  top: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  right: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  transition: var(--wp--custom--brag-book-gallery--transition);
  pointer-events: none;
  z-index: 1;
}

.brag-book-gallery-carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg, 20px);
}

.brag-book-gallery-carousel-title {
  margin: 0;
  font-size: var(--wp--custom--brag-book-gallery--font-size--xl, 24px);
  font-weight: 600;
  color: var(--wp--custom--brag-book-gallery--color--dark-grey, #333);
}

.brag-book-gallery-carousel-nav {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}

.brag-book-gallery-carousel-btn {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  width: 40px;
  height: 40px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--wp--custom--brag-book-gallery--color--dark-grey, #333);
}
.brag-book-gallery-carousel-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}
.brag-book-gallery-carousel-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.brag-book-gallery-carousel-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-carousel-btn:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.brag-book-gallery-carousel-content .brag-book-gallery-carousel-btn {
  position: absolute;
  top: 50%;
  width: calc(12 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(12 * var(--wp--custom--brag-book-gallery--spacer, 4px));
}
.brag-book-gallery-carousel-content .brag-book-gallery-carousel-btn[data-direction=prev] {
  left: 0;
  transform: translate3d(-50%, -50%, 0);
}
.brag-book-gallery-carousel-content .brag-book-gallery-carousel-btn[data-direction=next] {
  right: 0;
  transform: translate3d(50%, -50%, 0);
}

.brag-book-gallery-arrow-icon {
  width: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  height: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brag-book-gallery-carousel-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  margin-block-start: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}

.brag-book-gallery-pagination-dot {
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border-radius: 10em;
  background: var(--wp--custom--brag-book-gallery--color--light-grey);
  border: none;
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  padding: 0;
  position: relative;
}
.brag-book-gallery-pagination-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border-radius: 50%;
  background: transparent;
}
.brag-book-gallery-pagination-dot:focus-visible {
  outline: none;
}
.brag-book-gallery-pagination-dot:hover {
  background: var(--wp--custom--brag-book-gallery--color--grey);
  transform: scale(1.2);
}
.brag-book-gallery-pagination-dot.brag-book-gallery-active {
  background: var(--wp--custom--brag-book-gallery--color--black);
  width: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  border-radius: 10em;
}

.brag-book-gallery-carousel-image {
  display: block;
  width: 100%;
  height: auto;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-carousel-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
}

.brag-book-gallery-case-card {
  transition: var(--wp--custom--brag-book-gallery--transition);
  position: relative;
}
.brag-book-gallery-case-card-link {
  position: relative;
  z-index: 0;
  display: block;
  text-decoration: none;
  color: inherit;
  margin: 0;
  padding: 0;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  overflow: hidden;
  cursor: pointer;
}
.brag-book-gallery-case-card-link:focus {
  outline: none;
}
.brag-book-gallery-case-card-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  border-bottom-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  container-type: inline-size;
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm) var(--wp--custom--brag-book-gallery--spacer--md) !important;
  cursor: pointer;
}
[open] .brag-book-gallery-case-card-summary {
  border-radius: 0 0 var(--wp--custom--brag-book-gallery--rounded, 4px) var(--wp--custom--brag-book-gallery--rounded, 4px);
}
.brag-book-gallery-case-card-summary-info, .brag-book-gallery-case-card-summary-details {
  flex-basis: 100%;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  border-width: 1px;
  border-style: solid;
  border-color: var(--wp--custom--brag-book-gallery--color--light-grey);
  line-height: 20px;
}
@container (min-width: 400px) {
  .brag-book-gallery-case-card-summary-info, .brag-book-gallery-case-card-summary-details {
    flex-basis: auto;
  }
}
.brag-book-gallery-case-card-summary-info {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer-sm, 8px);
  border-top-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  border-bottom-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  flex-grow: 1;
}
.brag-book-gallery-case-card-summary-info__name {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}
.brag-book-gallery-case-card-summary-info__case-number {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
}
@container (max-width: 399px) {
  .brag-book-gallery-case-card-summary-info {
    border-bottom: 0 none;
  }
}
.brag-book-gallery-case-card-summary-details {
  display: flex;
  align-content: center;
  justify-content: space-between;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  margin: 0;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  border-top-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  border-bottom-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  flex-shrink: 0;
}
@container (max-width: 399px) {
  .brag-book-gallery-case-card-summary-details {
    padding-top: 0;
    border-top: 0 none;
  }
}
@container (min-width: 400px) {
  .brag-book-gallery-case-card-summary-details {
    flex-grow: 0;
    border-left: 0 none;
  }
}
.brag-book-gallery-case-card-summary-details strong {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}
[open] .brag-book-gallery-case-card-summary-details svg {
  transform: rotate(45deg);
}
.brag-book-gallery-case-card-summary-details svg {
  transition: var(--wp--custom--brag-book-gallery--transition);
  width: 20px !important;
  height: 20px !important;
}
.brag-book-gallery-case-card-summary:focus {
  outline: none;
}
.brag-book-gallery-case-card-details-content {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--md);
  background-color: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-case-card-details-content__title {
  margin: 0;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}
.brag-book-gallery-case-card-overlay {
  position: relative;
  background: white;
  color: inherit;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  border-bottom-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  border-bottom-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border-radius: 0;
    z-index: 2;
    box-shadow: none;
    padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  }
  .brag-book-gallery-image-container:hover .brag-book-gallery-case-card-overlay {
    opacity: 1;
    visibility: visible;
  }
}
.brag-book-gallery-case-card-overlay-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-content {
    flex-direction: row;
    align-items: center;
  }
}
.brag-book-gallery-case-card-overlay-info {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--xs, 4px);
  flex: 1;
  text-align: left;
}
.brag-book-gallery-case-card-overlay-title {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  line-height: 1.3;
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-title {
    font-size: var(--wp--custom--brag-book-gallery--text-lg, 18px);
    font-weight: var(--wp--custom--brag-book-gallery--font-weight--bold, 700);
  }
}
.brag-book-gallery-case-card-overlay-case-number {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  margin: 0;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-case-number {
    font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
    opacity: 0.9;
  }
}
.brag-book-gallery-case-card-overlay-button {
  background: #000;
  color: #FFF !important;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-button {
    background: white;
    color: #000 !important;
    width: 48px;
    height: 48px;
  }
  .brag-book-gallery-case-card-overlay-button:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
  }
}
.brag-book-gallery-case-card-overlay-button svg {
  width: 20px;
  height: 20px;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-button svg {
    width: 24px;
    height: 24px;
  }
}
.brag-book-gallery-case-card--v2 {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-md);
}
.brag-book-gallery-case-card--v2 .brag-book-gallery-image-container {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-case-card--v3 {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-md);
}
.brag-book-gallery-case-card--v3 .brag-book-gallery-image-container {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    opacity: 1;
    visibility: visible;
    display: block;
    align-items: initial;
    justify-content: initial;
    background: white;
    color: inherit;
    border-radius: 0;
    z-index: auto;
    box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
    padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
    border-bottom-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
    border-bottom-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-title {
    font-size: var(--wp--custom--brag-book-gallery--text-sm);
    font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-case-number {
    font-size: var(--wp--custom--brag-book-gallery--text-xs);
    opacity: 1;
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-button {
    background: #000;
    color: #FFF !important;
    width: 40px;
    height: 40px;
  }
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay .brag-book-gallery-case-card-overlay-button svg {
    width: 20px;
    height: 20px;
  }
}

.brag-book-gallery-case-doctor {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}

.brag-book-gallery-case-doctor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brag-book-gallery-case-doctor-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--custom--brag-book-gallery--color--light-grey, #e5e7eb);
  color: var(--wp--custom--brag-book-gallery--color--grey, #9ca3af);
}
.brag-book-gallery-case-doctor-avatar--placeholder svg {
  width: 16px;
  height: 16px;
}

.brag-book-gallery-case-doctor-name {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--medium, 500);
  line-height: 1.3;
}

.brag-book-gallery-case-card-overlay-info--doctor {
  flex-direction: row;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}

.brag-book-gallery-case-card-overlay-doctor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-doctor-avatar {
    width: 48px;
    height: 48px;
  }
}
.brag-book-gallery-case-card-overlay-doctor-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.6);
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-doctor-avatar--placeholder {
    background-color: rgba(255, 255, 255, 0.2);
  }
}
.brag-book-gallery-case-card-overlay-doctor-avatar--placeholder svg {
  width: 20px;
  height: 20px;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card-overlay-doctor-avatar--placeholder svg {
    width: 24px;
    height: 24px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay-doctor-avatar {
    width: 40px;
    height: 40px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay-doctor-avatar--placeholder {
    background-color: var(--wp--custom--brag-book-gallery--color--light-grey, #e5e7eb);
    color: var(--wp--custom--brag-book-gallery--color--grey, #9ca3af);
  }
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v3 .brag-book-gallery-case-card-overlay-doctor-avatar--placeholder svg {
    width: 20px;
    height: 20px;
  }
}

.brag-book-gallery-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
  transition: gap 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 576px) {
  .brag-book-gallery-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brag-book-gallery-cases-grid[data-columns="3"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .brag-book-gallery-cases-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brag-book-gallery-cases-grid.grid-animating > * {
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card {
  opacity: 0;
  animation: fadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(1) {
  animation-delay: 0.02s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(2) {
  animation-delay: 0.04s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(3) {
  animation-delay: 0.06s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(4) {
  animation-delay: 0.08s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(5) {
  animation-delay: 0.1s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(6) {
  animation-delay: 0.12s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(7) {
  animation-delay: 0.14s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(8) {
  animation-delay: 0.16s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(9) {
  animation-delay: 0.18s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(10) {
  animation-delay: 0.2s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(11) {
  animation-delay: 0.22s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(12) {
  animation-delay: 0.24s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(13) {
  animation-delay: 0.26s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(14) {
  animation-delay: 0.28s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(15) {
  animation-delay: 0.3s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(16) {
  animation-delay: 0.32s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(17) {
  animation-delay: 0.34s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(18) {
  animation-delay: 0.36s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(19) {
  animation-delay: 0.38s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(20) {
  animation-delay: 0.4s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(21) {
  animation-delay: 0.42s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(22) {
  animation-delay: 0.44s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(23) {
  animation-delay: 0.46s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(24) {
  animation-delay: 0.48s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(25) {
  animation-delay: 0.5s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(26) {
  animation-delay: 0.52s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(27) {
  animation-delay: 0.54s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(28) {
  animation-delay: 0.56s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(29) {
  animation-delay: 0.58s;
}
.brag-book-gallery-cases-grid:not(.grid-initialized) .brag-book-gallery-case-card:nth-child(30) {
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.brag-book-gallery-case-detail-fast {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-detail-nav {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-back-button {
  color: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  text-decoration: none;
  font-weight: 500;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-back-button:hover {
  text-decoration: underline;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-procedure-name {
  font-size: 1.25rem;
  color: var(--wp--custom--brag-book-gallery--color--grey, #666);
  text-transform: capitalize;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-meta {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-meta span {
  padding: 4px 12px;
  background: var(--wp--custom--brag-book-gallery--color--light-grey, #f0f0f0);
  border-radius: 4px;
  font-size: 0.875rem;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section .brag-book-gallery-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section .brag-book-gallery-image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes {
  margin-top: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes .notes-content {
  line-height: 1.6;
  color: var(--wp--custom--brag-book-gallery--color--text, #333);
}

.brag-book-gallery-case-grid {
  display: grid;
  gap: var(--wp--custom--brag-book-gallery--spacer--2xl);
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  align-items: start;
  transition: grid-template-columns 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 576px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--md);
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--4xl);
  }
  .brag-book-gallery-case-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="3"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brag-book-gallery-case-grid .brag-book-gallery-case-description,
.brag-book-gallery-case-grid .brag-book-gallery-case-notes {
  grid-column: 1/-1;
}
.brag-book-gallery-case-grid--tiles {
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
@media (min-width: 576px) {
  .brag-book-gallery-case-grid--tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-case-grid--tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--lg, 24px);
  }
}
@media (min-width: 1280px) {
  .brag-book-gallery-case-grid--tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
  }
}
.brag-book-gallery-case-grid--tiles .brag-book-gallery-case-card {
  width: 100%;
  max-width: none;
}

.brag-book-gallery-tiles-view {
  width: 100%;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 24px) 0;
}

.brag-book-gallery-tiles-container {
  width: 100%;
}

.brag-book-gallery-tiles-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .brag-book-gallery-tiles-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
}
.brag-book-gallery-tiles-filter-bar__left, .brag-book-gallery-tiles-filter-bar__right {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
  flex-wrap: wrap;
}
@media (max-width: 767px) {
  .brag-book-gallery-tiles-filter-bar__left, .brag-book-gallery-tiles-filter-bar__right {
    width: 100%;
  }
}
.brag-book-gallery-tiles-filter-bar__left {
  flex: 1;
}
.brag-book-gallery-tiles-filter-bar__right {
  justify-content: flex-end;
}
.brag-book-gallery-tiles-filter-bar__right .brag-book-gallery-button {
  margin: 0;
}

.brag-book-gallery-tiles-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--xs, 8px);
  padding: 12px 20px;
  background: var(--wp--custom--brag-book-gallery--color--dark, #1a1a1a);
  color: var(--wp--custom--brag-book-gallery--color--white, #ffffff);
  border: none;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--medium, 500);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  white-space: nowrap;
}
.brag-book-gallery-tiles-filter-btn:hover {
  background: var(--wp--custom--brag-book-gallery--color--darker, #000000);
  transform: translateY(-1px);
}
.brag-book-gallery-tiles-filter-btn:focus {
  outline: 2px solid var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  outline-offset: 2px;
}
.brag-book-gallery-tiles-filter-btn svg {
  flex-shrink: 0;
}
.brag-book-gallery-tiles-filter-btn--primary {
  background: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
}
.brag-book-gallery-tiles-filter-btn--primary:hover {
  background: var(--wp--custom--brag-book-gallery--color--primary-dark, #d94540);
}
@media (max-width: 767px) {
  .brag-book-gallery-tiles-filter-btn {
    justify-content: center;
    width: 100%;
  }
}

.brag-book-gallery-gallery-selector {
  position: relative;
}
.brag-book-gallery-gallery-selector__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--xs, 8px);
  padding: 10px 20px;
  background: var(--wp--custom--brag-book-gallery--color--dark, #1a1a1a);
  color: var(--wp--custom--brag-book-gallery--color--white, #ffffff);
  border: none;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--medium, 500);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  white-space: nowrap;
  list-style: none;
}
.brag-book-gallery-gallery-selector__toggle::-webkit-details-marker {
  display: none;
}
.brag-book-gallery-gallery-selector__toggle:hover {
  background: var(--wp--custom--brag-book-gallery--color--darker, #000000);
}
.brag-book-gallery-gallery-selector__toggle svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.brag-book-gallery-gallery-selector[open] .brag-book-gallery-gallery-selector__toggle svg {
  transform: rotate(180deg);
}
.brag-book-gallery-gallery-selector__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  max-width: 400px;
  background: var(--wp--custom--brag-book-gallery--color--white, #ffffff);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey, #e0e0e0);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-xl);
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: var(--wp--custom--brag-book-gallery--transition);
  transform-origin: top left;
  visibility: hidden;
}
details[open] .brag-book-gallery-gallery-selector__panel {
  max-height: 512px;
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  overflow: auto;
}
@media (max-width: 767px) {
  .brag-book-gallery-gallery-selector__panel {
    min-width: 280px;
    max-width: calc(100vw - 40px);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brag-book-gallery-category-nav-wrapper {
  position: relative;
}

.brag-book-gallery-category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brag-book-gallery-category-item {
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lightest-grey);
}
.brag-book-gallery-category-item:last-child {
  border-bottom: none;
}

.brag-book-gallery-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wp--custom--brag-book-gallery--spacer--md);
  text-decoration: none;
  color: var(--wp--custom--brag-book-gallery--color--text, #333333);
  transition: var(--wp--custom--brag-book-gallery--transition);
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}
.brag-book-gallery-category-link:hover, .brag-book-gallery-category-link:active {
  background-color: var(--wp--custom--brag-book-gallery--color--lightest-grey);
}
.brag-book-gallery-category-link:focus {
  outline: 0 none;
}

.brag-book-gallery-category-name {
  flex: 1;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semi-bold, 600);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--xs, 8px);
}

.brag-book-gallery-category-count {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
}

.brag-book-gallery-category-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brag-book-gallery-no-categories {
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  text-align: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
}

.brag-book-gallery-subcategory-panel[style*="display: block"] {
  animation: fadeIn 0.2s ease;
}

.brag-book-gallery-back-to-categories {
  display: flex;
  align-items: center;
  width: 100%;
  gap: var(--wp--custom--brag-book-gallery--spacer--xs, 8px);
  padding: var(--wp--custom--brag-book-gallery--spacer--lg);
  background: transparent;
  border: none;
  color: var(--wp--custom--brag-book-gallery--color--text, #333333);
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semi-bold, 600);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  font-family: inherit;
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-back-to-categories svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.brag-book-gallery-back-to-categories:focus {
  outline: 0 none;
}

.brag-book-gallery-tiles-view .brag-book-gallery-search-wrapper {
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  margin-bottom: 0;
}
.brag-book-gallery-tiles-view .brag-book-gallery-search-wrapper .brag-book-gallery-search-icon {
  left: 24px !important;
}
.brag-book-gallery-tiles-view .brag-book-gallery-button {
  padding-block: var(--wp--custom--brag-book-gallery--spacer--sm);
  font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
  text-transform: capitalize;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular, 400);
}
.brag-book-gallery-tiles-view .brag-book-gallery-procedure-list {
  list-style: none;
  margin: 0;
  padding: 0 !important;
}
.brag-book-gallery-tiles-view .brag-book-gallery-procedure-link {
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px) !important;
}
.brag-book-gallery-tiles-view .brag-book-gallery-procedure-name {
  flex: initial;
}

.brag-book-gallery-procedure-item {
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lightest-grey);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semi-bold, 600);
}
.brag-book-gallery-procedure-item:last-child {
  border-bottom: none;
}

.brag-book-gallery-procedure-name {
  flex: 1;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
}

.brag-book-gallery-procedure-count {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
}

.brag-book-gallery-favorites-link--tiles {
  position: relative;
  width: auto !important;
  border-right: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey) !important;
  padding: var(--wp--custom--brag-book-gallery--spacer--xs, 8px) var(--wp--custom--brag-book-gallery--spacer--3xl) !important;
}
.brag-book-gallery-favorites-link--tiles svg {
  width: 20px;
  height: 20px;
}
.brag-book-gallery-favorites-link--tiles .brag-book-gallery-favorites-link-count {
  position: absolute;
  top: 0;
  right: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  background-color: #fb2c36;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  border-radius: var(--wp--custom--brag-book-gallery--rounded-full);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold, 600);
}

.brag-book-gallery-procedures-grid {
  padding: var(--wp--custom--brag-book-gallery--spacer--xl, 32px) 0;
}

.brag-book-gallery-procedures-category {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--4xl, 48px);
}
.brag-book-gallery-procedures-category:last-child {
  margin-bottom: 0;
}

.brag-book-gallery-procedures-category-title {
  font-size: var(--wp--custom--brag-book-gallery--text-2xl, 24px);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold, 600);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg, 24px);
  color: var(--wp--custom--brag-book-gallery--color--text, #333333);
}

.brag-book-gallery-procedures-category-count {
  color: var(--wp--custom--brag-book-gallery--color--grey, #999999);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular, 400);
}

.brag-book-gallery-procedures-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
@media (min-width: 576px) {
  .brag-book-gallery-procedures-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-procedures-list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--lg, 24px);
  }
}
@media (min-width: 1024px) {
  .brag-book-gallery-procedures-list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
  }
}

.brag-book-gallery-procedure-card {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 12px);
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 24px);
  background: var(--wp--custom--brag-book-gallery--color--white, #ffffff);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey, #e0e0e0);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 8px);
  text-decoration: none;
  color: var(--wp--custom--brag-book-gallery--color--text, #333333);
  transition: var(--wp--custom--brag-book-gallery--transition);
  cursor: pointer;
}
.brag-book-gallery-procedure-card:hover {
  border-color: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  transform: translateY(-2px);
}
.brag-book-gallery-procedure-card:focus {
  outline: 2px solid var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  outline-offset: 2px;
}

.brag-book-gallery-procedure-card-name {
  font-size: var(--wp--custom--brag-book-gallery--text-base, 16px);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--medium, 500);
  color: var(--wp--custom--brag-book-gallery--color--text, #333333);
}

.brag-book-gallery-procedure-card-count {
  font-size: var(--wp--custom--brag-book-gallery--text-sm, 14px);
  color: var(--wp--custom--brag-book-gallery--color--grey, #999999);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular, 400);
}

.brag-book-gallery-landing-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: var(--wp--custom--brag-book-gallery--spacer--xl, 32px) var(--wp--custom--brag-book-gallery--spacer--lg, 24px);
}

.brag-book-gallery-case-description,
.brag-book-gallery-case-notes {
  background: var(--wp--custom--brag-book-gallery--color--white);
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-case-description:hover,
.brag-book-gallery-case-notes:hover {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-case-description h3,
.brag-book-gallery-case-notes h3 {
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg) 0;
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-case-description p,
.brag-book-gallery-case-notes p {
  margin: 0;
  line-height: 1.6;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}

.brag-book-gallery-brag-book-gallery-case-header-section {
  display: flex;
  flex-direction: column;
  padding: var(--wp--custom--brag-book-gallery--spacer--md) 0;
}
@media (max-width: 768px) {
  .brag-book-gallery-brag-book-gallery-case-header-section {
    flex-wrap: wrap;
    padding: var(--wp--custom--brag-book-gallery--spacer--sm) 0;
    margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
  }
}

.brag-book-gallery-case-navigation {
  display: flex;
  align-items: center;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--rounded-sm);
}

.brag-book-gallery-brag-book-gallery-case-header {
  flex: 1;
  display: flex;
  flex-flow: column nowrap;
  text-align: center;
  align-items: flex-start;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}
@media screen and (min-width: 768px) {
  .brag-book-gallery-brag-book-gallery-case-header {
    align-items: center;
    flex-flow: row wrap;
    justify-content: space-between;
  }
}
.brag-book-gallery-brag-book-gallery-case-header .brag-book-gallery-content-title {
  margin: 0;
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  line-height: var(--leading-6);
  color: var(--color-text-primary);
}
@media (max-width: 768px) {
  .brag-book-gallery-brag-book-gallery-case-header .brag-book-gallery-content-title {
    font-size: var(--text-lg);
    line-height: var(--leading-5);
  }
}
.brag-book-gallery-brag-book-gallery-case-header .brag-book-gallery-content-title .case-id {
  opacity: 0.7;
  font-weight: var(--font-normal);
}

.brag-book-gallery-doctor-profile {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 12px);
}
@media (max-width: 768px) {
  .brag-book-gallery-doctor-profile {
    justify-content: center;
  }
}

.brag-book-gallery-doctor-photo {
  flex-shrink: 0;
}

.brag-book-gallery-doctor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wp--custom--brag-book-gallery--color--light-grey, #e5e7eb);
}
.brag-book-gallery-doctor-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--wp--custom--brag-book-gallery--color--light-grey, #e5e7eb);
  color: var(--wp--custom--brag-book-gallery--color--grey, #9ca3af);
}

.brag-book-gallery-doctor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brag-book-gallery-doctor-name {
  font-size: var(--text-base, 1rem);
  font-weight: var(--font-medium, 500);
  color: var(--color-text-primary, #1f2937);
  text-decoration: none;
}

a.brag-book-gallery-doctor-name {
  color: var(--color-text-primary, #1f2937);
  text-decoration: none;
}
a.brag-book-gallery-doctor-name:hover {
  text-decoration: none;
}

.brag-book-gallery-case-card-procedures-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}
.brag-book-gallery-case-card-procedures-list__item {
  display: inline-flex;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.brag-book-gallery-case-card-procedures-list__link {
  display: inline-flex;
  width: 100%;
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  color: var(--wp--custom--brag-book-gallery--color--black);
  text-decoration: none;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  transition: var(--wp--custom--brag-book-gallery--transition);
  cursor: pointer;
}
.brag-book-gallery-case-card-procedures-list__link:hover, .brag-book-gallery-case-card-procedures-list__link:focus {
  color: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-case-card-procedures-list__link:active {
  transform: translateY(0);
}
@media (min-width: 768px) {
  .brag-book-gallery-case-card-procedures-list {
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    grid-auto-flow: row;
    gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  }
  .brag-book-gallery-case-card-procedures-list__link {
    align-items: center;
    justify-content: center;
  }
}

.brag-book-gallery-case-navigation {
  display: flex;
  align-items: center;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: color 0.2s ease;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}
.brag-book-gallery-case-navigation .brag-book-gallery-back-link:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--rounded-sm);
}

.brag-book-gallery-case-nav-buttons {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--md);
}

.brag-book-gallery-nav-button {
  text-decoration: none;
}
.brag-book-gallery-nav-button--prev, .brag-book-gallery-nav-button--next {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  background-color: var(--wp--custom--brag-book-gallery--color--white) !important;
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold) !important;
  padding: var(--wp--custom--brag-book-gallery--spacer--sm) !important;
  justify-content: center;
  box-shadow: 0 0 0 2px black;
  border-radius: var(--wp--custom--brag-book-gallery--rounded-full) !important;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-nav-button--prev:hover, .brag-book-gallery-nav-button--prev:focus, .brag-book-gallery-nav-button--next:hover, .brag-book-gallery-nav-button--next:focus {
  color: var(--wp--custom--brag-book-gallery--color--white) !important;
  background-color: var(--wp--custom--brag-book-gallery--color--black) !important;
}

.brag-book-gallery-case-description,
.brag-book-gallery-case-notes {
  background: var(--wp--custom--brag-book-gallery--color--white);
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-case-description:hover,
.brag-book-gallery-case-notes:hover {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-case-description h3,
.brag-book-gallery-case-notes h3 {
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--md) 0;
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-case-description p,
.brag-book-gallery-case-notes p {
  font-size: var(--wp--custom--brag-book-gallery--text-base);
  line-height: 1.6;
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg) 0;
  color: var(--wp--custom--brag-book-gallery--color--text, #333);
}
.brag-book-gallery-case-description p:last-child,
.brag-book-gallery-case-notes p:last-child {
  margin-bottom: 0;
}

.brag-book-gallery-case-detail-fast {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-detail-nav {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-back-button {
  color: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  text-decoration: none;
  font-weight: 500;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-back-button:hover {
  text-decoration: underline;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-procedure-name {
  font-size: 1.25rem;
  color: var(--wp--custom--brag-book-gallery--color--grey, #666);
  text-transform: capitalize;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-meta {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-detail-header .brag-book-gallery-case-meta span {
  padding: 4px 12px;
  background: var(--wp--custom--brag-book-gallery--color--light-grey, #f0f0f0);
  border-radius: 4px;
  font-size: 0.875rem;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes {
  margin-top: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-notes .notes-content {
  line-height: 1.6;
  color: var(--wp--custom--brag-book-gallery--color--text, #333);
}

.brag-book-gallery-case-images {
  display: grid;
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl, 32px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section .brag-book-gallery-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 16px);
}
.brag-book-gallery-case-detail-fast .brag-book-gallery-case-images .brag-book-gallery-image-section .brag-book-gallery-image-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brag-book-gallery-case-image-pair h3,
.brag-book-gallery-case-image-pair .brag-book-gallery-case-image-pair-title {
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-case-image-pair img {
  width: 100%;
  height: auto;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
}
.brag-book-gallery-case-image-pair .processed-image {
  position: relative;
}
.brag-book-gallery-case-image-pair .processed-image img {
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-case-image-pair .image-caption {
  text-align: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin-top: var(--wp--custom--brag-book-gallery--spacer--sm);
}

.brag-book-gallery-case-detail-skeleton {
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  z-index: 9999;
  overflow: hidden;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar .skeleton-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.2s ease;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar .skeleton-progress-text {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  background: var(--wp--custom--brag-book-gallery--color--white);
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-case-detail-skeleton .skeleton-back-link {
  height: 1.25rem;
  width: 6rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-title {
  height: 2rem;
  width: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-navigation-buttons {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-navigation-buttons .skeleton-nav-btn {
  height: 2.5rem;
  width: 2.5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 50%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-main-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 300px;
}
@media (max-width: 768px) {
  .brag-book-gallery-case-detail-skeleton .skeleton-main-image {
    min-height: 200px;
  }
}
.brag-book-gallery-case-detail-skeleton .skeleton-thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
.brag-book-gallery-case-detail-skeleton .skeleton-card-title {
  height: 1.25rem;
  width: 70%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-badges {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  flex-wrap: wrap;
}
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-badges .skeleton-badge {
  height: 1.5rem;
  width: 5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 12px;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item,
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row,
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item,
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row {
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 3px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(1) {
  width: 90%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(2) {
  width: 75%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(3) {
  width: 85%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line {
  height: 0.875rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 3px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line.short {
  width: 65%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line.medium {
  width: 80%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.brag-book-case-images-split,
.brag-book-case-image-single {
  position: relative;
}

html.nudity-accepted-preload .brag-book-gallery-nudity-warning, body.nudity-accepted .brag-book-gallery-nudity-warning {
  display: none !important;
}

html.nudity-accepted-preload .brag-book-gallery-nudity-blur, body.nudity-accepted .brag-book-gallery-nudity-blur {
  filter: none !important;
}

.brag-book-gallery-case-images-section {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--4xl);
}

.brag-book-gallery-case-images-layout {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
}

.brag-book-gallery-case-main-viewer {
  flex: 1;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

.brag-book-gallery-main-image-container {
  position: relative;
  width: 100%;
}

.procedure-details-subheading {
  font-size: var(--wp--custom--brag-book-gallery--text-base) !important;
  margin: var(--wp--custom--brag-book-gallery--spacer--lg) 0 var(--wp--custom--brag-book-gallery--spacer--sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.brag-book-gallery-main-single {
  position: relative;
  overflow: hidden;
}
.brag-book-gallery-main-single img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.brag-book-gallery-main-single .brag-book-gallery-item-actions {
  position: absolute;
  bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
  right: var(--wp--custom--brag-book-gallery--spacer--lg);
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  z-index: 30;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brag-book-gallery-case-thumbnails {
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.brag-book-gallery-thumbnails-grid {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  flex-direction: row;
  overflow-x: auto;
  padding-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}

.brag-book-gallery-thumbnail-item {
  cursor: pointer;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  overflow: hidden;
  transition: var(--wp--custom--brag-book-gallery--transition);
  background: #f5f5f5;
}
.brag-book-gallery-thumbnail-item:hover {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-thumbnail-item.active {
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-thumbnail-item:focus {
  outline: none;
}
.brag-book-gallery-thumbnail-item img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .brag-book-gallery-thumbnail-item {
    flex-shrink: 0;
    width: 120px;
  }
}

.brag-book-gallery-case-card-details-grid {
  display: grid;
  gap: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .brag-book-gallery-case-card-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}
@media (min-width: 1200px) {
  .brag-book-gallery-case-card-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.case-detail-card {
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: 8px;
  overflow: hidden;
}
.case-detail-card.case-notes-card {
  margin-top: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
}

.card-header {
  display: flex;
  justify-content: center;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg) var(--wp--custom--brag-book-gallery--spacer--2xl);
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  text-align: center;
}

.card-title {
  margin: 0;
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-size: var(--wp--custom--brag-book-gallery--text-lg) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.card-content {
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl);
}

.patient-info-grid,
.procedure-details-grid {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}

.brag-book-gallery-info-label {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.brag-book-gallery-info-value {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
}

.brag-book-gallery-procedure-badges-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}

.brag-book-gallery-info-item,
.procedure-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm) var(--wp--custom--brag-book-gallery--spacer--md);
  background: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.case-details-content {
  line-height: 1.75;
}
.case-details-content p {
  font-size: var(--wp--custom--brag-book-gallery--text-base);
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg) 0;
}
.case-details-content p:last-child {
  margin-bottom: 0;
}

.brag-book-gallery-case-images {
  display: grid;
  gap: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
}

.brag-book-gallery-case-images {
  width: 100%;
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer);
  overflow: hidden;
}

.brag-book-gallery-case-images.single-image {
  display: block;
}

.brag-book-gallery-case-permalink {
  display: flex;
}

.brag-book-gallery-picture {
  line-height: 0;
}

.brag-book-gallery-consultation-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.5;
  text-align: center;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg) !important;
}
.brag-book-gallery-consultation-text strong {
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.brag-book-gallery-content-title {
  font-size: var(--wp--custom--brag-book-gallery--text-2xl) !important;
  line-height: 1.25;
  margin-block: 0 var(--wp--custom--brag-book-gallery--spacer--md, 12px) !important;
}
.brag-book-gallery-content-title strong {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}
@media (min-width: 768px) {
  .brag-book-gallery-content-title {
    font-size: var(--wp--custom--brag-book-gallery--text-4xl) !important;
  }
}
@media (min-width: 1024px) {
  .brag-book-gallery-content-title {
    font-size: var(--wp--custom--brag-book-gallery--text-8xl) !important;
  }
}

.brag-book-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  padding-block: var(--wp--custom--brag-book-gallery--spacer--md, 12px) 0;
  border-width: 1px 0 0;
  border-style: solid;
  border-color: var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-controls-left {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  flex-wrap: wrap;
}

.brag-book-gallery-dialog {
  padding: 0;
  border: none;
  border-radius: var(--wp--custom--brag-book-gallery--spacer--md);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  max-width: 512px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  margin: 0;
  z-index: 100;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  opacity: 1;
  visibility: visible;
}
.brag-book-gallery-dialog:not([open]) {
  display: none;
}
.brag-book-gallery-dialog::backdrop {
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.65));
  backdrop-filter: blur(4px);
}
.brag-book-gallery-dialog[open] {
  animation: dialogFadeIn 0.3s ease-out;
}
.brag-book-gallery-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-dialog-content {
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl);
}
.brag-book-gallery-dialog-logo {
  height: var(--wp--custom--brag-book-gallery--spacer--6xl, 40px);
  width: auto;
  flex-shrink: 0;
}
.brag-book-gallery-dialog-title {
  font-size: var(--wp--custom--brag-book-gallery--text-2xl) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--black);
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg) 0;
}
.brag-book-gallery-dialog-description {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.5;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--2xl);
}
.brag-book-gallery-dialog-close {
  width: var(--wp--custom--brag-book-gallery--spacer--4xl, 32px);
  height: var(--wp--custom--brag-book-gallery--spacer--4xl, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  padding: 0;
}
.brag-book-gallery-dialog-close svg {
  width: var(--wp--custom--brag-book-gallery--spacer--lg);
  height: var(--wp--custom--brag-book-gallery--spacer--lg);
  stroke: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-dialog-close:hover {
  background: var(--wp--custom--brag-book-gallery--color--light-grey);
}
.brag-book-gallery-dialog-close:focus {
  outline: none;
}

@keyframes dialogFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
.brag-book-gallery-favorites-link-wrapper {
  margin-block-start: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  padding: 0;
}

.brag-book-gallery-favorites-link {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  width: 100%;
  padding: calc(3 * var(--wp--custom--brag-book-gallery--spacer, 4px)) calc(4 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  color: var(--wp--custom--brag-book-gallery--color--black);
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
}
.brag-book-gallery-favorites-link-label {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--bold);
}
.brag-book-gallery-favorites-link-label strong {
  color: var(--wp--custom--brag-book-gallery--color--primary, #d94540);
}
.brag-book-gallery-favorites-link-count {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}
.brag-book-gallery-favorites-link:hover {
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-favorites-link:focus {
  outline: none;
}

.brag-book-gallery-favorites-user,
.brag-book-gallery-favorite-count {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}

.brag-book-gallery-favorites-empty-state {
  text-align: center;
  padding: var(--wp--custom--brag-book-gallery--spacer--4xl);
  max-width: 500px;
  margin: 0 auto;
}
.brag-book-gallery-favorites-empty-state .empty-icon {
  color: var(--wp--custom--brag-book-gallery--color--light-grey);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-favorites-empty-state h2 {
  font-size: var(--wp--custom--brag-book-gallery--spacer--2xl);
  margin: var(--wp--custom--brag-book-gallery--spacer--lg) 0;
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-favorites-empty-state p {
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--4xl);
  line-height: 1.6;
}
.brag-book-gallery-favorites-empty-state .brag-book-gallery-button {
  display: inline-block;
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--2xl);
  background: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  text-decoration: none;
  border: none;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}
.brag-book-gallery-favorites-empty-state .brag-book-gallery-button:hover {
  background: var(--wp--custom--brag-book-gallery--color--grey);
}

.brag-book-gallery-case-navigation {
  display: inline-flex;
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
  font-size: var(--wp--custom--brag-book-gallery--text-sm) !important;
  margin-block-end: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}

.brag-book-gallery-favorites-list {
  padding: var(--wp--custom--brag-book-gallery--spacer--md);
  max-height: 400px;
  overflow-y: auto;
}

.brag-book-gallery-filter-content .brag-book-gallery-favorites-list {
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--lg);
}

.brag-book-gallery-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}

.brag-book-gallery-favorites-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  overflow: hidden;
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
}

.brag-book-gallery-favorites-item:hover {
  border-color: var(--wp--custom--brag-book-gallery--color--black);
  transform: scale(1.05);
}

.brag-book-gallery-favorites-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brag-book-gallery-favorites-item-remove {
  position: absolute;
  top: var(--wp--custom--brag-book-gallery--spacer);
  right: var(--wp--custom--brag-book-gallery--spacer);
  width: 20px;
  height: 20px;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: var(--wp--custom--brag-book-gallery--transition);
}

.brag-book-gallery-favorites-item:hover .brag-book-gallery-favorites-item-remove {
  opacity: 1;
}

.brag-book-gallery-favorites-item-remove:hover {
  background: var(--wp--custom--brag-book-gallery--color--black);
  border-color: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
}

.brag-book-gallery-favorites-empty {
  color: var(--wp--custom--brag-book-gallery--color--light-grey);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  text-align: left;
  padding: 0;
  margin: 0;
}

.brag-book-gallery-favorites-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer-xl);
  margin-bottom: 0;
  justify-content: center;
}

.brag-book-gallery-favorites-logo {
  width: 100%;
  max-width: 240px;
  height: auto;
  flex-shrink: 0;
}

.brag-book-gallery-favorites-text {
  flex: 1;
  text-align: left;
  max-width: 512px;
}

.brag-book-gallery-favorites-description {
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  line-height: 1.75;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin: 0;
}

.brag-book-gallery-favorites-description strong {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--black);
}

.brag-book-gallery-favorites-section {
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey);
  border-radius: var(--wp--custom--brag-book-gallery--spacer--md);
  padding: var(--wp--custom--brag-book-gallery--spacer--4xl);
  text-align: center;
}

.brag-book-gallery-favorites-title {
  font-size: var(--wp--custom--brag-book-gallery--spacer--4xl);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--4xl);
  text-align: center;
  color: var(--wp--custom--brag-book-gallery--color--black);
}

.brag-book-gallery-favorites-form-wrapper {
  max-width: 512px;
  margin: 0 auto var(--wp--custom--brag-book-gallery--spacer--4xl);
  text-align: center;
}

.brag-book-gallery-favorites-lookup-form {
  margin-top: var(--wp--custom--brag-book-gallery--spacer--2xl);
}
.brag-book-gallery-favorites-lookup-form .brag-book-gallery-form-group {
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}
@media (max-width: 640px) {
  .brag-book-gallery-favorites-lookup-form .brag-book-gallery-form-group {
    flex-direction: column;
  }
}
.brag-book-gallery-favorites-lookup-form .brag-book-gallery-form-input {
  flex: 1;
}
.brag-book-gallery-favorites-lookup-form .brag-book-gallery-form-submit {
  flex-shrink: 0;
  padding-left: var(--wp--custom--brag-book-gallery--spacer--4xl);
  padding-right: var(--wp--custom--brag-book-gallery--spacer--4xl);
}
@media (max-width: 640px) {
  .brag-book-gallery-favorites-lookup-form .brag-book-gallery-form-submit {
    width: 100%;
  }
}

.brag-book-gallery-favorites-view .brag-book-gallery-favorites-loading,
.brag-book-gallery-favorites-view .brag-book-gallery-favorites-empty {
  text-align: center;
  padding: 48px var(--wp--custom--brag-book-gallery--spacer--lg);
  font-size: var(--wp--custom--brag-book-gallery--text-lg);
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-favorites-view .brag-book-gallery-favorites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--wp--custom--brag-book-gallery--spacer--4xl);
  margin-top: var(--wp--custom--brag-book-gallery--spacer--4xl);
}
@media (max-width: 640px) {
  .brag-book-gallery-favorites-view .brag-book-gallery-favorites-grid {
    grid-template-columns: 1fr;
  }
}

.brag-book-gallery-favorites-grid .brag-book-gallery-case-card {
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border-radius: var(--wp--custom--brag-book-gallery--spacer--md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-image:hover img {
  transform: scale(1.05);
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-label {
  position: absolute;
  bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
  left: var(--wp--custom--brag-book-gallery--spacer--sm);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: var(--wp--custom--brag-book-gallery--spacer) var(--wp--custom--brag-book-gallery--spacer--sm);
  border-radius: var(--wp--custom--brag-book-gallery--spacer);
  font-size: var(--wp--custom--brag-book-gallery--spacer--md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-info {
  padding: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-favorites-grid .brag-book-gallery-case-card-details {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin: 0;
}
.brag-book-gallery-favorites-grid .brag-book-gallery-item-actions {
  padding: 0 var(--wp--custom--brag-book-gallery--spacer--lg) var(--wp--custom--brag-book-gallery--spacer--lg);
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-favorites-grid .brag-book-gallery-favorite-button--remove:hover svg {
  fill: var(--wp--custom--brag-book-gallery--color--grey);
}

.brag-book-gallery-filter-dropdown {
  position: relative;
}
.brag-book-gallery-filter-dropdown[style*="display: none"] {
  display: none !important;
}
.brag-book-gallery-filter-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  padding-block: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  padding-inline: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: var(--wp--custom--brag-book-gallery--xl);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  user-select: none;
  list-style: none;
}
.brag-book-gallery-filter-dropdown__toggle svg {
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-filter-dropdown__toggle span {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
}
.brag-book-gallery-filter-dropdown__toggle::-webkit-details-marker {
  display: none;
}
.brag-book-gallery-filter-dropdown__toggle:hover {
  color: var(--wp--custom--brag-book-gallery--color--black);
  background-color: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-color: var(--wp--custom--brag-book-gallery--color--light-grey);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-filter-dropdown__toggle:focus {
  outline: 2px solid rgba(0, 0, 0, 0);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--wp--custom--brag-book-gallery--white), 0 0 0 4px currentColor;
}
details[open] .brag-book-gallery-filter-dropdown__toggle {
  background-color: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white);
  border-color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-filter-dropdown__toggle.has-active-filters {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}
.brag-book-gallery-filter-dropdown__toggle.has-active-filters:hover {
  background-color: #fde68a;
  border-color: #fbbf24;
}
.brag-book-gallery-filter-dropdown__panel {
  position: absolute;
  top: calc(100% + var(--wp--custom--brag-book-gallery--spacer--sm, 8px));
  left: 0;
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-xl);
  z-index: 50;
  min-width: 272px;
  max-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: var(--wp--custom--brag-book-gallery--transition);
  transform-origin: top left;
  visibility: hidden;
}
details[open] .brag-book-gallery-filter-dropdown__panel {
  max-height: 512px;
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@media (min-width: 1024px) {
  .brag-book-gallery-filter-dropdown__panel {
    min-width: 320px;
    max-width: 384px;
  }
}

.brag-book-gallery-user-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl, 24px);
  padding-block: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  padding-inline: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: var(--wp--custom--brag-book-gallery--xl);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.brag-book-gallery-user-info .user-info-content {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-user-info .user-email,
.brag-book-gallery-user-info .favorites-count {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}
.brag-book-gallery-user-info .user-email svg,
.brag-book-gallery-user-info .favorites-count svg {
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-user-info .user-email span,
.brag-book-gallery-user-info .favorites-count span {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
}
.brag-book-gallery-user-info .user-email {
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--medium);
}
.brag-book-gallery-user-info .favorites-count {
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-user-info .favorites-count svg {
  color: #ef4444;
}

.brag-book-gallery-filter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background-color: var(--wp--custom--brag-book-gallery--color-white) !important;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lightest-grey);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}
.brag-book-gallery-filter-label__name {
  color: currentColor;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  line-height: 1;
}
.brag-book-gallery-filter-label__arrow {
  flex-shrink: 0;
  transition: transform 200ms cubic-bezier(0.4, 0, 0.2, 1);
  color: currentColor;
}
.brag-book-gallery-filter-label__arrow .brag-book-gallery-filter[open] {
  transform: rotate(180deg);
}
.brag-book-gallery-filter-label:focus {
  outline: none;
}

.brag-book-gallery-filter-options {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
details[open] .brag-book-gallery-filter-options {
  max-height: 300px;
  opacity: 1;
  animation: expandDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes expandDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 300px;
    opacity: 1;
  }
}
.brag-book-gallery-filter-option {
  display: flex;
  align-items: center;
  list-style: none;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px) !important;
  margin: 0 !important;
}
.brag-book-gallery-filter-option:hover {
  background-color: rgba(0, 0, 0, 0);
}
.brag-book-gallery-filter-option:hover label {
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-filter-option input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  margin: 0 var(--wp--custom--brag-book-gallery--spacer--md, 12px) 0 0;
  width: calc(5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  flex-shrink: 0;
}
.brag-book-gallery-filter-option input[type=checkbox]:hover {
  border-color: var(--wp--custom--brag-book-gallery--color--light-grey);
}
.brag-book-gallery-filter-option input[type=checkbox]:checked {
  background-color: var(--wp--custom--brag-book-gallery--color--black);
  border-color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-filter-option input[type=checkbox]:checked::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='white'%3E%3Cpath d='M400-318.23 254.23-464 296-505.77l104 104 264-264L705.77-624 400-318.23Z'/%3E%3C/svg%3E");
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
}
.brag-book-gallery-filter-option input[type=checkbox]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.1);
}
.brag-book-gallery-filter-option label {
  flex: 1;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: var(--wp--custom--brag-book-gallery--xl);
  color: #4b5563;
  cursor: pointer;
  user-select: none;
  transition: color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brag-book-gallery-filter-results {
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--lg);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--wp--custom--brag-book-gallery--spacer--sm);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: var(--wp--custom--brag-book-gallery--xl);
  color: #92400e;
  font-weight: 500;
  display: none;
}

.brag-book-gallery-filter-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer);
  flex-direction: column;
  padding: var(--wp--custom--brag-book-gallery--spacer--sm);
  background-color: var(--wp--custom--brag-book-gallery--color--white);
  border-top: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: 0 0 var(--wp--custom--brag-book-gallery--rounded) var(--wp--custom--brag-book-gallery--rounded);
}
@media (min-width: 600px) {
  .brag-book-gallery-filter-actions {
    flex-direction: row;
  }
}

.brag-book-gallery-button--apply, .brag-book-gallery-button--clear {
  flex: 1 1 auto;
  font-size: var(--wp--custom--brag-book-gallery--text-xs) !important;
  text-transform: initial;
  padding: var(--wp--custom--brag-book-gallery--spacer--sm) !important;
  margin: 0;
}
.brag-book-gallery-button--clear {
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
  background-color: var(--wp--custom--brag-book-gallery--color--white) !important;
  border-color: var(--wp--custom--brag-book-gallery--color--lighter-grey) !important;
}
.brag-book-gallery-button--clear:hover {
  color: var(--wp--custom--brag-book-gallery--color--white) !important;
  background-color: var(--wp--custom--brag-book-gallery--color--black) !important;
  border-color: var(--wp--custom--brag-book-gallery--color--black) !important;
}

details[open] .brag-book-gallery-filter-dropdown__toggle.has-active-filters {
  background-color: #92400e;
  color: #fff;
  border-color: #92400e;
}

.brag-book-gallery-filter-content {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
}

.brag-book-gallery-filter-group {
  margin: 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.brag-book-gallery-filter-group:last-child {
  border-bottom: none;
}

.brag-book-gallery-filter-group summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--lg);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  user-select: none;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brag-book-gallery-filter-group summary::-webkit-details-marker {
  display: none;
}

.brag-book-gallery-filter-group summary:hover {
  background-color: #f9fafb;
}

.brag-book-gallery-filter-group-content {
  padding: var(--wp--custom--brag-book-gallery--spacer--sm) var(--wp--custom--brag-book-gallery--spacer--lg) var(--wp--custom--brag-book-gallery--spacer--lg) var(--wp--custom--brag-book-gallery--spacer--lg);
  list-style: none;
  margin: 0;
}

.brag-book-gallery-active-filters {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--md);
  flex-wrap: wrap;
  margin: 0;
}

.brag-book-gallery-filter-badges {
  display: flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  flex-wrap: wrap;
}

.brag-book-gallery-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--rounded);
  padding: var(--wp--custom--brag-book-gallery--spacer) var(--wp--custom--brag-book-gallery--spacer--sm);
  background-color: var(--wp--custom--brag-book-gallery--color--light-grey);
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  line-height: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  transition: var(--wp--custom--brag-book-gallery--transition);
  max-width: fit-content;
}

.brag-book-gallery-badge-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.brag-book-gallery-badge-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  color: currentColor;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-badge-remove svg {
  width: calc(2.5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  height: calc(2.5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
}

.brag-book-gallery-clear-all-filters {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 150ms ease;
  border: 0 none;
}
.brag-book-gallery-clear-all-filters:focus {
  outline: none;
}
.brag-book-gallery-clear-all-filters:hover {
  color: #1a3bb3;
  text-decoration: underline;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter {
  opacity: 0;
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter:nth-child(1) {
  animation-delay: 0.05s;
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter:nth-child(2) {
  animation-delay: 0.1s;
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter:nth-child(3) {
  animation-delay: 0.15s;
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter:nth-child(4) {
  animation-delay: 0.2s;
}
details[open] .brag-book-gallery-filter-dropdown__panel .brag-book-gallery-filter:nth-child(5) {
  animation-delay: 0.25s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brag-book-gallery-form-input,
.brag-book-gallery-form-textarea {
  width: 100% !important;
  padding-block: var(--wp--custom--brag-book-gallery--spacer--md, 12px) !important;
  padding-inline: var(--wp--custom--brag-book-gallery--spacer--lg, 16px) !important;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF) !important;
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey) !important;
  border-radius: var(--wp--custom--brag-book-gallery--rounded) !important;
  font-size: var(--wp--custom--brag-book-gallery--text-base) !important;
  transition: var(--wp--custom--brag-book-gallery--transition);
  line-height: 1.25;
  outline: none;
  font-family: inherit;
}
.brag-book-gallery-form-input:hover,
.brag-book-gallery-form-textarea:hover {
  border-color: var(--wp--custom--brag-book-gallery--color--grey) !important;
}
.brag-book-gallery-form-input:focus,
.brag-book-gallery-form-textarea:focus {
  border-color: var(--wp--custom--brag-book-gallery--color--black) !important;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.brag-book-gallery-form-input[type=tel]:invalid:not(:focus):not(:placeholder-shown) {
  border-color: #ef4444;
}

.brag-book-gallery-form-input[type=tel]:valid:not(:focus) {
  border-color: var(--wp--custom--brag-book-gallery--color--light-grey);
}

.brag-book-gallery-form-label {
  display: block;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}

.brag-book-gallery-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.brag-book-gallery-form-message.hidden {
  display: none;
}

.brag-book-gallery-form-message {
  padding: var(--wp--custom--brag-book-gallery--spacer--lg);
  border-radius: var(--wp--custom--brag-book-gallery--spacer--sm);
  margin-bottom: var(--wp--custom--brag-book-gallery--xl);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brag-book-gallery-form-message-content {
  margin: 0;
}

.brag-book-gallery-form-message-success {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.brag-book-gallery-form-message-success::before {
  content: "✓";
  display: inline-block;
  width: var(--wp--custom--brag-book-gallery--xl);
  height: var(--wp--custom--brag-book-gallery--xl);
  margin-right: var(--wp--custom--brag-book-gallery--spacer--sm);
  background-color: #22c55e;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: var(--wp--custom--brag-book-gallery--xl);
  font-weight: bold;
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
}

.brag-book-gallery-form-message-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.brag-book-gallery-form-message-error::before {
  content: "!";
  display: inline-block;
  width: var(--wp--custom--brag-book-gallery--xl);
  height: var(--wp--custom--brag-book-gallery--xl);
  margin-right: var(--wp--custom--brag-book-gallery--spacer--sm);
  background-color: #ef4444;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: var(--wp--custom--brag-book-gallery--xl);
  font-weight: bold;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}

.brag-book-gallery-form-message-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.brag-book-gallery-form-group {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xl);
}

.brag-book-gallery-form-success,
.brag-book-gallery-form-error {
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--lg);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  margin-top: var(--wp--custom--brag-book-gallery--spacer--lg);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.5;
  animation: slideDown 0.3s ease-out;
}

.brag-book-gallery-form-success {
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.brag-book-gallery-form-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.brag-book-gallery-form-error--detailed .brag-book-gallery-form-error__title {
  display: block;
  font-size: var(--wp--custom--brag-book-gallery--text-base);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--bold);
  color: #991b1b;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-form-error--detailed .brag-book-gallery-form-error__message {
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--sm) 0;
  color: #991b1b;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.5;
}
.brag-book-gallery-form-error--detailed .brag-book-gallery-form-error__details {
  margin: var(--wp--custom--brag-book-gallery--spacer--sm) 0 0 0;
  padding-left: var(--wp--custom--brag-book-gallery--spacer--lg);
  list-style-type: disc;
}
.brag-book-gallery-form-error--detailed .brag-book-gallery-form-error__details li {
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--xs, 4px);
  color: #7f1d1d;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  line-height: 1.4;
}
.brag-book-gallery-form-error--detailed .brag-book-gallery-form-error__details li:last-child {
  margin-bottom: 0;
}

.brag-book-gallery-case-grid {
  display: grid;
  gap: var(--wp--custom--brag-book-gallery--spacer--2xl);
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  grid-auto-flow: dense;
  align-items: start;
  transition: grid-template-columns 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (min-width: 576px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1var --wp--custom--brag-book-gallery--spacer--md;
  }
}
@media (min-width: 768px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wp--custom--brag-book-gallery--spacer--4xl);
  }
  .brag-book-gallery-case-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="3"] {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1280px) {
  .brag-book-gallery-case-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .brag-book-gallery-case-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
  }
}
.brag-book-gallery-case-grid .brag-book-gallery-case-description,
.brag-book-gallery-case-grid .brag-book-gallery-case-notes {
  grid-column: 1/-1;
}

.brag-book-gallery-grid-label {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brag-book-gallery-grid-selector {
  display: none;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
}
@media (min-width: 1280px) {
  .brag-book-gallery-grid-selector {
    display: flex;
  }
}

.brag-book-gallery-grid-buttons {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
}

.brag-book-gallery-grid-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  border: 1px solid var(--gray-100);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-sm);
}
.brag-book-gallery-grid-btn svg {
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-grid-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}
.brag-book-gallery-grid-btn.active {
  background: var(--wp--custom--brag-book-gallery--color--black);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border-color: var(--wp--custom--brag-book-gallery--color--black);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
}

/**
 * Column View Styles
 * Displays procedures organized by parent categories in adaptive columns
 *
 * @package BRAGBookGallery
 * @since   3.3.1
 */
.brag-book-gallery-wrapper--start {
  max-width: 1440px !important;
}

.brag-book-gallery-procedure-groups {
  display: grid;
  gap: var(--wp--custom--brag-book-gallery--spacer--2xl);
  width: 100%;
}
.brag-book-gallery-procedure-groups.columns-1 {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}
.brag-book-gallery-procedure-groups.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 768px) {
  .brag-book-gallery-procedure-groups.columns-2 {
    grid-template-columns: 1fr;
  }
}
.brag-book-gallery-procedure-groups.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .brag-book-gallery-procedure-groups.columns-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .brag-book-gallery-procedure-groups.columns-3 {
    grid-template-columns: 1fr;
  }
}
.brag-book-gallery-procedure-groups.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1200px) {
  .brag-book-gallery-procedure-groups.columns-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .brag-book-gallery-procedure-groups.columns-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .brag-book-gallery-procedure-groups.columns-4 {
    grid-template-columns: 1fr;
  }
}
.brag-book-gallery-procedure-groups.columns-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
@media (max-width: 1200px) {
  .brag-book-gallery-procedure-groups.columns-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1024px) {
  .brag-book-gallery-procedure-groups.columns-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .brag-book-gallery-procedure-groups.columns-5 {
    grid-template-columns: 1fr;
  }
}

.brag-book-gallery-procedure-group {
  background: var(--wp--custom--brag-book-gallery--color--white);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  overflow: hidden;
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-xl);
  transition: box-shadow 0.2s ease-in-out;
}

.brag-book-gallery-group-banner {
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-group-banner .brag-book-gallery-banner-image {
  width: 100%;
  min-height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease-in-out;
}
.brag-book-gallery-group-banner .brag-book-gallery-banner-image:hover {
  transform: scale(1.05);
}

.brag-book-gallery-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--wp--custom--brag-book-gallery--text-2xl) !important;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border: 0 none;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: rgba(0, 0, 0, 0);
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px) 0 var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  width: 100%;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--bold) !important;
  margin: 0 !important;
}

.brag-book-gallery-procedure-list {
  list-style: none;
  margin: 0 !important;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) !important;
}
.brag-book-gallery-procedure-list li:last-child a {
  border-bottom: none;
}

.brag-book-gallery-procedure-item {
  margin: 0 !important;
  padding: 0 !important;
}

.brag-book-gallery-procedure-link {
  display: flex;
  align-items: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm) !important;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border: 0 none;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: rgba(0, 0, 0, 0);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) !important;
  width: 100%;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  text-decoration: none;
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-procedure-link:hover, .brag-book-gallery-procedure-link:focus {
  text-decoration: none;
}
.brag-book-gallery-procedure-link:focus {
  outline: 0 none;
}

.brag-book-gallery-case-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey);
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl);
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
}
.brag-book-gallery-case-image-pair .before-image,
.brag-book-gallery-case-image-pair .after-image {
  text-align: center;
}
.brag-book-gallery-case-image-pair h3, .brag-book-gallery-case-image-pair-title {
  margin: 0 0 var(--wp--custom--brag-book-gallery--spacer--lg) 0;
  font-size: var(--wp--custom--brag-book-gallery--spacer--lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-case-image-pair img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-case-image-pair .processed-image {
  grid-column: 1/-1;
  text-align: center;
}
.brag-book-gallery-case-image-pair .processed-image img {
  max-width: 100%;
  height: auto;
}
.brag-book-gallery-case-image-pair .image-caption {
  grid-column: 1/-1;
  text-align: center;
  margin-top: var(--wp--custom--brag-book-gallery--spacer--sm);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  font-style: italic;
}

.brag-book-case-image-container {
  position: relative;
  width: 100%;
  padding-top: 75%;
  background: var(--gray-100);
  overflow: hidden;
}

.brag-book-case-images-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
}

.brag-book-case-image-before,
.brag-book-case-image-after {
  position: relative;
  width: 50%;
  height: 100%;
  overflow: hidden;
}
.brag-book-case-image-before::after,
.brag-book-case-image-after::after {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
}

.brag-book-case-image-before::after {
  right: 0;
}

.brag-book-case-image-label {
  position: absolute;
  top: var(--wp--custom--brag-book-gallery--spacer--sm);
  left: var(--wp--custom--brag-book-gallery--spacer--sm);
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  padding: var(--wp--custom--brag-book-gallery--spacer) var(--wp--custom--brag-book-gallery--spacer--sm);
  border-radius: var(--wp--custom--brag-book-gallery--spacer);
  font-size: var(--wp--custom--brag-book-gallery--spacer--md);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.brag-book-case-image-after .brag-book-case-image-label {
  left: auto;
  right: var(--wp--custom--brag-book-gallery--spacer--sm);
}

.brag-book-case-image-single {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.brag-book-case-image-single img, .brag-book-case-images-split img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.brag-book-case-card:hover .brag-book-case-image-single img, .brag-book-case-card:hover .brag-book-case-images-split img {
  transform: scale(1.05);
}

.brag-book-case-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  color: var(--wp--custom--brag-book-gallery--color--grey);
}

.brag-book-gallery-case-images.single-image img {
  opacity: 1;
  width: 100%;
  height: auto;
}

.brag-book-gallery-before-image, .brag-book-gallery-after-image, .brag-book-gallery-before-placeholder, .brag-book-gallery-after-placeholder {
  flex: 1;
  position: relative;
}

.brag-book-gallery-image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top-right-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  border-top-left-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
}

.brag-book-gallery-placeholder-container {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brag-book-gallery-placeholder-container span {
  position: absolute;
  color: #999;
}

.brag-book-gallery-skeleton-loader {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.brag-book-gallery-picture {
  display: flex;
}

.brag-book-gallery-image-label {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 2;
}

.brag-book-gallery-case-images img {
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.brag-book-gallery-after-image .brag-book-gallery-item-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.brag-book-gallery-after-image:hover .brag-book-gallery-item-actions, .brag-book-gallery-after-image:focus-within .brag-book-gallery-item-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brag-book-gallery-after-image:has(.brag-book-gallery-favorite-button[data-favorited=true]) .brag-book-gallery-item-actions {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.brag-book-gallery-case-images.single-image .brag-book-gallery-item-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 8px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 3;
}

.brag-book-gallery-image-container .brag-book-gallery-case-carousel {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}
.brag-book-gallery-image-container .brag-book-gallery-case-carousel::-webkit-scrollbar {
  display: none;
}
.brag-book-gallery-image-container .brag-book-gallery-case-carousel .brag-book-gallery-picture {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.brag-book-gallery-image-container .brag-book-gallery-case-carousel .brag-book-gallery-picture img {
  width: 100%;
  height: auto;
  display: block;
}
.brag-book-gallery-image-container .brag-book-gallery-case-carousel-pagination {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) 0;
  z-index: 10;
  background: white;
}
@media (hover: hover) and (pointer: fine) {
  .brag-book-gallery-case-card--v2 .brag-book-gallery-image-container .brag-book-gallery-case-carousel-pagination {
    position: absolute;
    bottom: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    background: transparent;
  }
}

.brag-book-gallery-case-carousel-dot {
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border-radius: 10em;
  background: var(--wp--custom--brag-book-gallery--color--light-grey);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--wp--custom--brag-book-gallery--transition);
  text-decoration: none;
  display: block;
  position: relative;
}
.brag-book-gallery-case-carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  height: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border-radius: 50%;
  background: transparent;
}
.brag-book-gallery-case-carousel-dot:focus-visible {
  outline: none;
}
.brag-book-gallery-case-carousel-dot:hover {
  background: var(--wp--custom--brag-book-gallery--color--grey);
  transform: scale(1.2);
}
.brag-book-gallery-case-carousel-dot:target, .brag-book-gallery-case-carousel-dot:focus {
  background: var(--wp--custom--brag-book-gallery--color--black);
  width: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  border-radius: 10em;
}

.brag-book-gallery-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  font-size: var(--wp--custom--brag-book-gallery--spacer--lg);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  min-height: 300px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  position: relative;
  z-index: 1000;
}
.brag-book-gallery-loading::before {
  content: "";
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
  border: 4px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-top-color: var(--wp--custom--brag-book-gallery--color--primary, #CC0000);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.brag-book-gallery-loading.brag-book-gallery-loading--fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  z-index: 9999;
}
.brag-book-gallery-loading.brag-book-gallery-loading--content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 400px;
}

.brag-book-load-more-container {
  text-align: center;
  margin: var(--wp--custom--brag-book-gallery--spacer--2xl) 0;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg) 0;
}

.brag-book-gallery-loading-skeleton {
  width: 100%;
  max-width: 600px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-loading-skeleton .skeleton-header {
  height: 32px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-loading-skeleton .skeleton-image {
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-loading-skeleton .skeleton-details .skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-loading-skeleton .skeleton-details .skeleton-line.short {
  width: 60%;
}

.loading-text {
  font-size: var(--wp--custom--brag-book-gallery--spacer--md);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  margin-top: var(--wp--custom--brag-book-gallery--spacer--md);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.brag-book-gallery-case-detail-skeleton {
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  z-index: 9999;
  overflow: hidden;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar .skeleton-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.2s ease;
}
.brag-book-gallery-case-detail-skeleton .skeleton-progress-bar .skeleton-progress-text {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  background: var(--wp--custom--brag-book-gallery--color--white);
  padding: 2px 8px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.brag-book-gallery-case-detail-skeleton .skeleton-back-link {
  height: 1.25rem;
  width: 6rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--lg);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-title {
  height: 2rem;
  width: 50%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-navigation-buttons {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-navigation-buttons .skeleton-nav-btn {
  height: 2.5rem;
  width: 2.5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 50%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-main-image {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
  min-height: 300px;
}
@media (max-width: 768px) {
  .brag-book-gallery-case-detail-skeleton .skeleton-main-image {
    min-height: 200px;
  }
}
.brag-book-gallery-case-detail-skeleton .skeleton-thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}
.brag-book-gallery-case-detail-skeleton .skeleton-card-title {
  height: 1.25rem;
  width: 70%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--md);
}
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-badges {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm);
  flex-wrap: wrap;
}
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-badges .skeleton-badge {
  height: 1.5rem;
  width: 5rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 12px;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item,
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row,
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item,
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row {
  height: 1rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 3px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(1),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(1) {
  width: 90%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(2),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(2) {
  width: 75%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-info-item:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-patient-info .skeleton-detail-row:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-info-item:nth-child(3),
.brag-book-gallery-case-detail-skeleton .skeleton-procedure-details .skeleton-detail-row:nth-child(3) {
  width: 85%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line {
  height: 0.875rem;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 3px;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--sm);
  width: 100%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line.short {
  width: 65%;
}
.brag-book-gallery-case-detail-skeleton .skeleton-case-notes .skeleton-text-line.medium {
  width: 80%;
}

@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.brag-book-gallery-mobile-header {
  display: none;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  padding: var(--wp--custom--brag-book-gallery--spacer) 0;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  box-shadow: 0 2px var(--wp--custom--brag-book-gallery--spacer) rgba(0, 0, 0, 0.05);
}
@media (max-width: 1279px) {
  .brag-book-gallery-mobile-header {
    display: flex;
  }
}
@media (min-width: 1280px) {
  .brag-book-gallery-mobile-header {
    padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  }
}

.brag-book-gallery-mobile-menu-toggle {
  display: flex;
  width: 40px;
  height: 40px;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: var(--wp--custom--brag-book-gallery--color--white);
  border: 1px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  padding: 0;
}
.brag-book-gallery-mobile-menu-toggle svg {
  fill: currentColor;
  stroke: none;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-mobile-menu-toggle:hover {
  background: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-mobile-menu-toggle:focus {
  outline: 2px solid var(--wp--custom--brag-book-gallery--color--black);
  outline-offset: 2px;
}
.brag-book-gallery-mobile-menu-toggle[data-menu-open=true] {
  background: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-mobile-menu-toggle[data-menu-open=true] svg {
  fill: var(--wp--custom--brag-book-gallery--color--white, #FFF);
}

.brag-book-gallery-mobile-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.brag-book-gallery-mobile-overlay.brag-book-gallery-active {
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 1280px) {
  .brag-book-gallery-mobile-overlay {
    display: none;
  }
}

body:has(.brag-book-gallery-sidebar.brag-book-gallery-active) .brag-book-gallery-mobile-menu-toggle {
  opacity: 0;
  pointer-events: none;
}

.brag-book-gallery-nav {
  margin-block-start: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
}

.brag-book-gallery-nav-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--wp--custom--brag-book-gallery--text-base) !important;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  border: 0 none;
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: transparent;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  width: 100%;
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
}
.brag-book-gallery-nav-button:hover, .brag-book-gallery-nav-button:focus, .brag-book-gallery-nav-button:active {
  color: var(--wp--custom--brag-book-gallery--color--black);
  background: transparent;
}
.brag-book-gallery-nav-button__label {
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  align-items: center;
  font-size: var(--wp--custom--brag-book-gallery--text-base);
  user-select: none;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
}
[open] .brag-book-gallery-nav-button {
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  background-color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-nav-button__label {
  display: flex;
  align-items: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
}
[open] .brag-book-gallery-nav-button__label {
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
}

.brag-book-gallery-nav-count {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: inherit;
}

body.brag-book-gallery-hide-filter-counts .brag-book-gallery-nav-count {
  display: none !important;
}

.brag-book-gallery-nav-list-submenu {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-block-end: 0 !important;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease-in-out, margin-block-end 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[open] .brag-book-gallery-nav-list-submenu {
  max-height: 999em;
  opacity: 1;
  padding-block-end: var(--wp--custom--brag-book-gallery--spacer--lg) !important;
  margin-block-end: var(--wp--custom--brag-book-gallery--spacer--lg) !important;
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey);
}

.brag-book-gallery-nav-list-submenu__item {
  padding: 0 !important;
  list-style: none;
}
.brag-book-gallery-nav-list-submenu__item::before {
  display: none !important;
}

.brag-book-gallery-nav-link {
  position: relative;
  display: flex;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px) !important;
  text-decoration: none;
  overflow: hidden;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular) !important;
  color: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-nav-link:hover {
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
}
.brag-book-gallery-nav-link::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: var(--wp--custom--brag-book-gallery--spacer--md, 12px);
  position: absolute;
  top: 50%;
  transform: translate3d(-500%, -50%, 0);
  left: calc(1.5 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  background-color: transparent;
  transition: var(--wp--custom--brag-book-gallery--transition);
}
.brag-book-gallery-nav-link.brag-book-gallery-active {
  background-color: var(--wp--custom--brag-book-gallery--color--lighter-grey);
}
.brag-book-gallery-nav-link.brag-book-gallery-active::before {
  background-color: var(--wp--custom--brag-book-gallery--color--black);
  transform: translate3d(0, -50%, 0);
}

.brag-book-gallery-nav-list__item summary {
  list-style: none;
}
.brag-book-gallery-nav-list__item summary::-webkit-details-marker {
  display: none;
}
.brag-book-gallery-nav-list__item summary::marker {
  display: none;
}
.brag-book-gallery-nav-list__item summary {
  cursor: pointer;
}

.brag-book-gallery-nudity-warning {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  color: var(--wp--custom--brag-book-gallery--color--black) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  z-index: 10;
  padding: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  text-align: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  pointer-events: all;
  cursor: default;
}
.brag-book-gallery-nudity-warning-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-nudity-warning-title {
  color: var(--wp--custom--brag-book-gallery--color--black, #000);
  font-size: var(--wp--custom--brag-book-gallery--text-lg) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  margin-block-end: 0;
}
.brag-book-gallery-nudity-warning-caption {
  color: var(--wp--custom--brag-book-gallery--color--black, #000);
  font-size: var(--wp--custom--brag-book-gallery--text-xs) !important;
  line-height: 1.25;
  margin-bottom: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
}
.brag-book-gallery-nudity-warning-button {
  color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  background: var(--wp--custom--brag-book-gallery--color--black);
  border: none;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px);
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 120px;
}
.brag-book-gallery-nudity-warning-button:hover {
  color: var(--wp--custom--brag-book-gallery--color--black, #000) !important;
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.brag-book-gallery-nudity-warning-blur {
  filter: blur(20px);
  transition: filter 0.5s ease;
}

.brag-book-gallery-powered-by {
  text-align: center;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-powered-by-link {
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  text-decoration: none;
  transition: var(--wp--custom--brag-book-gallery--transition);
  margin-block: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-powered-by-link:hover {
  text-decoration: underline;
}

.brag-book-gallery-procedure-template {
  width: 100%;
  max-width: 100%;
}
.brag-book-gallery-procedure-template .brag-book-gallery-procedure-header {
  margin-bottom: 2rem;
  text-align: center;
}
.brag-book-gallery-procedure-template .brag-book-gallery-procedure-header .brag-book-gallery-procedure-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .brag-book-gallery-procedure-template .brag-book-gallery-procedure-header .brag-book-gallery-procedure-title {
    font-size: 2rem;
  }
}
.brag-book-gallery-procedure-template .brag-book-gallery-procedure-header .brag-book-gallery-procedure-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.brag-book-gallery-procedure-template .brag-book-gallery-procedure-cases {
  width: 100%;
}
.brag-book-gallery-procedure-template .brag-book-gallery-loading {
  padding: 2rem 0;
}
.brag-book-gallery-procedure-template .brag-book-gallery-loading .brag-book-gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.brag-book-gallery-procedure-template .brag-book-gallery-loading .brag-book-gallery-skeleton .skeleton-item {
  height: 300px;
  background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
  background-size: 400% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.brag-book-procedure-template-wrapper,
.brag-book-procedure-page-wrapper {
  padding: 2rem 0;
}
.brag-book-procedure-template-wrapper .container,
.brag-book-procedure-page-wrapper .container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}
.brag-book-procedure-template-wrapper .site-main,
.brag-book-procedure-page-wrapper .site-main {
  width: 100%;
}

.brag-book-taxonomy-procedures-wrapper,
.brag-book-archive-procedures-wrapper {
  padding: 2rem 0;
}
.brag-book-taxonomy-procedures-wrapper .container,
.brag-book-archive-procedures-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
.brag-book-taxonomy-procedures-wrapper .site-main,
.brag-book-archive-procedures-wrapper .site-main {
  width: 100%;
}
.brag-book-taxonomy-procedures-wrapper .page-header,
.brag-book-archive-procedures-wrapper .page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.brag-book-taxonomy-procedures-wrapper .page-header .page-title,
.brag-book-archive-procedures-wrapper .page-header .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .brag-book-taxonomy-procedures-wrapper .page-header .page-title,
  .brag-book-archive-procedures-wrapper .page-header .page-title {
    font-size: 2rem;
  }
}
.brag-book-taxonomy-procedures-wrapper .page-header .taxonomy-description,
.brag-book-archive-procedures-wrapper .page-header .taxonomy-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}
.brag-book-taxonomy-procedures-wrapper .page-header .taxonomy-description p,
.brag-book-archive-procedures-wrapper .page-header .taxonomy-description p {
  margin-bottom: 0;
}
.brag-book-taxonomy-procedures-wrapper .no-results,
.brag-book-archive-procedures-wrapper .no-results {
  text-align: center;
  padding: 3rem 0;
}
.brag-book-taxonomy-procedures-wrapper .no-results .page-title,
.brag-book-archive-procedures-wrapper .no-results .page-title {
  font-size: 2rem;
  color: #666;
  margin-bottom: 1rem;
}
.brag-book-taxonomy-procedures-wrapper .no-results .page-content,
.brag-book-archive-procedures-wrapper .no-results .page-content {
  font-size: 1.125rem;
  color: #888;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.brag-book-gallery-search-wrapper {
  position: relative;
  width: 100%;
  flex: 1;
}
@media (min-width: 1024px) {
  .brag-book-gallery-search-wrapper {
    margin-block-end: calc(8 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  }
}

.brag-book-gallery-search-input,
.brag-book-gallery-mobile-search-input {
  width: 100%;
  padding: var(--wp--custom--brag-book-gallery--spacer--md, 12px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px) var(--wp--custom--brag-book-gallery--spacer--md, 12px) calc(10 * var(--wp--custom--brag-book-gallery--spacer, 4px)) !important;
  background: var(--wp--custom--brag-book-gallery--color--white, #FFF) !important;
  border: 1px solid var(--wp--custom--brag-book-gallery--color--lighter-grey) !important;
  box-shadow: 0 0 0 1px var(--wp--custom--brag-book-gallery--color--lighter-grey);
  border-radius: var(--wp--custom--brag-book-gallery--rounded, 4px) !important;
  font-size: var(--wp--custom--brag-book-gallery--text-xs) !important;
  line-height: var(--wp--custom--brag-book-gallery--spacer--lg, 16px) !important;
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular) !important;
  transition: var(--wp--custom--brag-book-gallery--transition);
  outline: none;
}
.brag-book-gallery-search-input:hover,
.brag-book-gallery-mobile-search-input:hover {
  border-color: var(--wp--custom--brag-book-gallery--light-grey);
}
.brag-book-gallery-search-input:focus,
.brag-book-gallery-mobile-search-input:focus {
  border-color: var(--wp--custom--brag-book-gallery--color--black);
  box-shadow: 0 0 0 var(--wp--custom--brag-book-gallery--spacer, 4px) rgba(0, 0, 0, 0.05);
}
.brag-book-gallery-search-wrapper.active .brag-book-gallery-search-input,
.brag-book-gallery-search-wrapper.active .brag-book-gallery-mobile-search-input {
  border-color: var(--wp--custom--brag-book-gallery--color--black);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.brag-book-gallery-search-icon {
  position: absolute;
  left: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  height: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  stroke: var(--wp--custom--brag-book-gallery--color--grey);
  pointer-events: none;
  z-index: 1;
}

.brag-book-gallery-search-dropdown,
.brag-book-gallery-mobile-search-dropdown {
  position: absolute;
  top: calc(100% + var(--wp--custom--brag-book-gallery--spacer, 4px));
  left: 0;
  right: 0;
  background-color: var(--wp--custom--brag-book-gallery--color--white, #FFF);
  border: 2px solid var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  box-shadow: var(--wp--custom--brag-book-gallery--shadow-lg);
  max-height: calc(80 * var(--wp--custom--brag-book-gallery--spacer, 4px));
  overflow-y: auto;
  z-index: 100;
  display: none;
  animation: slideDown 0.2s ease-out;
}
.brag-book-gallery-search-dropdown.active,
.brag-book-gallery-mobile-search-dropdown.active {
  display: block;
}
.brag-book-gallery-search-dropdown::-webkit-scrollbar,
.brag-book-gallery-mobile-search-dropdown::-webkit-scrollbar {
  width: 6px;
}
.brag-book-gallery-search-dropdown::-webkit-scrollbar-track,
.brag-book-gallery-mobile-search-dropdown::-webkit-scrollbar-track {
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey);
  border-radius: var(--wp--custom--brag-book-gallery--spacer, 4px);
}
.brag-book-gallery-search-dropdown::-webkit-scrollbar-thumb,
.brag-book-gallery-mobile-search-dropdown::-webkit-scrollbar-thumb {
  background: var(--wp--custom--brag-book-gallery--color--light-grey);
  border-radius: var(--wp--custom--brag-book-gallery--spacer, 4px);
}
.brag-book-gallery-search-dropdown::-webkit-scrollbar-thumb:hover,
.brag-book-gallery-mobile-search-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-search-wrapper.active .brag-book-gallery-search-dropdown,
.brag-book-gallery-search-wrapper.active .brag-book-gallery-mobile-search-dropdown {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top-color: var(--wp--custom--brag-book-gallery--color--black);
}

.brag-book-gallery-search-item {
  padding: var(--wp--custom--brag-book-gallery--spacer--sm, 8px) var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
  cursor: pointer;
  transition: var(--wp--custom--brag-book-gallery--transition);
  border-bottom: 1px solid var(--wp--custom--brag-book-gallery--color--lightest-grey);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  gap: var(--wp--custom--brag-book-gallery--spacer--lg, 16px);
}
.brag-book-gallery-search-item:last-child {
  border-bottom: none;
}
.brag-book-gallery-search-item:hover, .brag-book-gallery-search-item[aria-selected=true] {
  background: var(--wp--custom--brag-book-gallery--color--lightest-grey);
  padding-left: var(--wp--custom--brag-book-gallery--xl);
}
.brag-book-gallery-search-item:hover .brag-book-gallery-search-item-count, .brag-book-gallery-search-item[aria-selected=true] .brag-book-gallery-search-item-count {
  color: var(--wp--custom--brag-book-gallery--color--grey);
}
.brag-book-gallery-search-item[aria-selected=true]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--wp--custom--brag-book-gallery--spacer, 4px);
  background: var(--wp--custom--brag-book-gallery--color--black);
}
.brag-book-gallery-search-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--wp--custom--brag-book-gallery--spacer);
}
.brag-book-gallery-search-item-name {
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--semibold);
  color: var(--wp--custom--brag-book-gallery--color--black);
  line-height: 1.25;
}
.brag-book-gallery-search-item-count {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  display: inline-flex;
  align-items: center;
  gap: var(--wp--custom--brag-book-gallery--spacer, 4px);
}
.brag-book-gallery-search-item-count::before {
  content: "•";
  color: var(--wp--custom--brag-book-gallery--color--light-grey);
}
.brag-book-gallery-search-item-category {
  font-size: var(--wp--custom--brag-book-gallery--text-xs);
  color: var(--wp--custom--brag-book-gallery--color--grey);
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  padding: var(--wp--custom--brag-book-gallery--spacer, 4px) var(--wp--custom--brag-book-gallery--spacer--sm, 8px);
  border-radius: var(--wp--custom--brag-book-gallery--rounded-full);
  font-weight: var(--wp--custom--brag-book-gallery--font-weight--regular);
  white-space: nowrap;
}
.brag-book-gallery-search-item mark {
  background: var(--wp--custom--brag-book-gallery--color--lighter-grey);
  color: var(--wp--custom--brag-book-gallery--color--black);
  font-weight: 600;
  padding: 0 2px;
  border-radius: 2px;
}

.brag-book-gallery-search-no-results {
  padding: var(--wp--custom--brag-book-gallery--spacer--2xl, 24px);
  text-align: center;
  color: var(--wp--custom--brag-book-gallery--color--grey);
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.brag-book-gallery-share-button {
  position: relative;
}

.brag-book-gallery-share-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #000;
  border: 1px solid hsla(0, 0%, 100%, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 4px;
  display: none;
  z-index: 1001;
  min-width: 120px;
  opacity: 0;
}
.brag-book-gallery-share-dropdown.active {
  display: block;
  opacity: 1;
}
.brag-book-gallery-share-dropdown-item {
  display: block;
  width: 100%;
  padding: var(--wp--custom--brag-book-gallery--spacer--md) var(--wp--custom--brag-book-gallery--spacer--lg);
  background: none;
  border: none;
  border-radius: var(--wp--custom--brag-book-gallery--rounded);
  text-align: left;
  font-size: var(--wp--custom--brag-book-gallery--text-sm);
  color: hsla(0, 0%, 100%, 0.9);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}
.brag-book-gallery-share-dropdown-item:hover {
  background-color: hsla(0, 0%, 100%, 0.1);
  color: #fff;
}
.brag-book-gallery-share-dropdown-item:focus {
  outline: none;
  background-color: hsla(0, 0%, 100%, 0.15);
  color: #fff;
}
.brag-book-gallery-share-dropdown-item.active {
  background-color: hsla(0, 0%, 100%, 0.2);
}
