/**
 * Presentation gallery frames — border designs + image fit (Public Composer).
 * Loaded after home-presentation-families.css on presentation home shells.
 */

/* --- Image fit (per slide) --- */
.home-pres__gallery-frame-window[class*="--fit-"] img {
  width: 100%;
  height: auto;
}

.home-pres__gallery-frame-window--fit-portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.home-pres__gallery-frame-window--fit-landscape img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.home-pres__gallery-frame-window--fit-square img {
  aspect-ratio: 1;
  object-fit: cover;
}

.home-pres__gallery-frame-window--fit-contain {
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.home-pres__gallery-frame-window--fit-contain img {
  aspect-ratio: auto;
  max-height: min(72vh, 480px);
  object-fit: contain;
  width: auto;
  max-width: 100%;
}

/* --- Thin / line frames --- */
.home-pres__gallery-frame--thin_black {
  padding: 0.15rem;
  background: #fff;
  border: 1px solid #111;
}

.home-pres__gallery-frame--thin_black_rounded {
  padding: 0.15rem;
  background: #fff;
  border: 1px solid #111;
  border-radius: 8px;
}

.home-pres__gallery-frame--thin_black_rounded .home-pres__gallery-frame-window {
  border-radius: 5px;
  overflow: hidden;
}

.home-pres__gallery-frame--medium_black {
  padding: 0.35rem;
  background: #fff;
  border: 2px solid #111;
}

.home-pres__gallery-frame--medium_black_rounded {
  padding: 0.35rem;
  background: #fff;
  border: 2px solid #111;
  border-radius: 10px;
}

.home-pres__gallery-frame--medium_black_rounded .home-pres__gallery-frame-window {
  border-radius: 6px;
  overflow: hidden;
}

.home-pres__gallery-frame--double_black {
  padding: 0.25rem;
  background: #fff;
  border: 3px double #111;
}

.home-pres__gallery-frame--double_black_rounded {
  padding: 0.25rem;
  background: #fff;
  border: 3px double #111;
  border-radius: 8px;
}

.home-pres__gallery-frame--hairline_white {
  padding: 0.5rem;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.home-pres__gallery-frame--hairline_white_rounded {
  padding: 0.5rem;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 10px;
}

.home-pres__gallery-frame--graphite {
  padding: 0.2rem;
  background: #f4f4f4;
  border: 1px solid #4a4a4a;
}

.home-pres__gallery-frame--graphite_rounded {
  padding: 0.2rem;
  background: #f4f4f4;
  border: 1px solid #4a4a4a;
  border-radius: 8px;
}

/* --- Mats & neutrals --- */
.home-pres__gallery-frame--white_matte {
  padding: 0.65rem;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.1);
}

.home-pres__gallery-frame--white_matte_rounded {
  padding: 0.65rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(20, 24, 31, 0.1);
}

.home-pres__gallery-frame--charcoal {
  padding: 0.4rem;
  background: linear-gradient(180deg, #3a3a3a, #1e1e1e);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.home-pres__gallery-frame--charcoal_rounded {
  padding: 0.4rem;
  background: linear-gradient(180deg, #3a3a3a, #1e1e1e);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.home-pres__gallery-frame--minimal {
  padding: 0;
  background: transparent;
}

.home-pres__gallery-frame--minimal .home-pres__gallery-frame-window {
  background: transparent;
}

/* --- Shadow / float --- */
.home-pres__gallery-frame--soft_shadow {
  padding: 0.35rem;
  background: #fff;
  box-shadow: 0 18px 36px rgba(20, 24, 31, 0.16);
}

.home-pres__gallery-frame--soft_shadow_rounded {
  padding: 0.35rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(20, 24, 31, 0.16);
}

.home-pres__gallery-frame--floater {
  padding: 0.45rem;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 20px 40px rgba(20, 24, 31, 0.14);
}

.home-pres__gallery-frame--floater .home-pres__gallery-frame-window {
  margin: 0.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

/* --- Metallic / wood --- */
.home-pres__gallery-frame--silver {
  padding: 0.45rem;
  background: linear-gradient(135deg, #e8ecef 0%, #b8c0c8 50%, #f0f2f4 100%);
  border: 1px solid #9aa5b0;
}

.home-pres__gallery-frame--brass {
  padding: 0.5rem;
  background: linear-gradient(145deg, #8b7340, #c9a962 40%, #6b5a30);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.home-pres__gallery-frame--walnut {
  padding: 0.55rem;
  background: linear-gradient(160deg, #5c4033 0%, #3d2817 55%, #6b4a35 100%);
  box-shadow: 0 12px 26px rgba(30, 18, 10, 0.28);
}

.home-pres__gallery-frame--birch {
  padding: 0.55rem;
  background: linear-gradient(160deg, #e8dcc8 0%, #c9b896 50%, #f2ebe0 100%);
  border: 1px solid rgba(120, 90, 50, 0.25);
}

/* --- Texture / ribbon / bevel --- */
.home-pres__gallery-frame--canvas {
  padding: 0.5rem;
  background:
    repeating-linear-gradient(
      45deg,
      #f5f2ec,
      #f5f2ec 3px,
      #ebe6dc 3px,
      #ebe6dc 6px
    );
  border: 1px solid #d8d0c4;
}

.home-pres__gallery-frame--linen {
  padding: 0.55rem;
  background: #f0ebe3;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.home-pres__gallery-frame--linen .home-pres__gallery-frame-mat {
  border: 1px solid rgba(0, 0, 0, 0.06);
  inset: 0.4rem;
}

.home-pres__gallery-frame--ribbon {
  padding: 0.4rem 0.4rem 0.55rem;
  background: #fff;
  border-top: 4px solid #c0392b;
  box-shadow: 0 10px 22px rgba(20, 24, 31, 0.12);
}

.home-pres__gallery-frame--bevel {
  padding: 0.45rem;
  background: #e2e2e2;
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.9),
    inset -2px -2px 4px rgba(0, 0, 0, 0.12);
}

.home-pres__gallery-frame--bevel .home-pres__gallery-frame-window {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

/* --- Legacy / decorative (also selectable in admin) --- */
.home-pres__gallery-frame--classic {
  padding: 0.55rem;
  background: linear-gradient(145deg, #f8f6f1 0%, #e8e4dc 48%, #d4cfc4 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 12px 28px rgba(20, 24, 31, 0.14);
}

.home-pres__gallery-frame--classic_rounded {
  padding: 0.55rem;
  background: linear-gradient(145deg, #f8f6f1, #e8e4dc);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(20, 24, 31, 0.12);
}

.home-pres__gallery-frame--gilt {
  padding: 0.65rem;
  background: linear-gradient(135deg, #3d3428 0%, #1f1a14 40%, #5c4d32 100%);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.home-pres__gallery-frame--gilt .home-pres__gallery-frame-mat {
  border: 2px solid rgba(201, 169, 98, 0.55);
  inset: 0.35rem;
}

.home-pres__gallery-frame--shadow {
  padding: 0.35rem;
  background: #fff;
  box-shadow: 0 22px 40px rgba(20, 24, 31, 0.18);
}

.home-pres__gallery-frame--polaroid {
  padding: 0.65rem 0.65rem 2.1rem;
  background: #faf9f6;
  box-shadow: 0 10px 24px rgba(20, 24, 31, 0.12);
}

.home-pres__gallery-frame--polaroid .home-pres__gallery-frame-caption {
  position: absolute;
  left: 0.65rem;
  right: 0.65rem;
  bottom: 0.45rem;
  margin: 0;
}

.home-pres__gallery-frame--ornate {
  padding: 0.85rem;
  background: linear-gradient(160deg, #2a2520, #0f0e0c);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.home-pres__gallery-frame--ornate .home-pres__gallery-frame-mat {
  border: 3px double rgba(201, 169, 98, 0.45);
  inset: 0.5rem;
}

.home-pres__gallery-frame--museum {
  padding: 0.25rem;
  background: #111;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-pres__gallery-frames--strip .home-pres__gallery-frame--soft_shadow {
  transform: none;
}
