/*
Theme Name: Ring Matters Galleries
Template: ringmattersnow-theme
Version: 1.0.14
Description: Gallery homepage and category landing pages for Ring Matters Now.
*/
.rmn-gallery{background:#10131a;color:#f5f3ed;min-height:100vh;padding:0 5vw 55px;font:16px/1.55 system-ui,sans-serif}
.rmn-gallery *{box-sizing:border-box}
.rmn-gallery a{color:inherit}
.rmn-gallery .rmn-shell{max-width:1120px;margin:auto}
.rmn-gallery nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;padding:24px 0;border-bottom:1px solid #42495a}
.rmn-gallery nav a{text-decoration:none;font-weight:700}
.rmn-gallery h1{color:inherit;font:700 clamp(2.5rem,8vw,6rem)/1.05 system-ui;margin:58px 0 14px;letter-spacing:-.06em}
.rmn-gallery .rmn-lead{color:#cdd5e5;font-size:1.125rem;margin:0 0 36px}
.rmn-gallery .rmn-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:16px}
.rmn-gallery .rmn-card{display:flex;align-items:flex-end;min-height:165px;padding:24px;border-radius:14px;background:#28324a;text-decoration:none;font-size:1.35rem;font-weight:700}
.rmn-gallery .rmn-card:hover,.rmn-gallery .rmn-card:focus-visible{background:#3d5077}
.rmn-gallery figure{margin:0}
.rmn-gallery img{max-width:100%;height:auto}
.rmn-gallery footer{margin-top:48px;border-top:1px solid #42495a;padding-top:20px}
.rmn-gallery .rmn-ad{margin:32px auto;text-align:center;overflow-wrap:anywhere}
.rmn-gallery .rmn-ad iframe{max-width:100%}
.rmn-gallery button{background:#d8e8ff;color:#10131a;border:0;border-radius:8px;padding:12px 17px;font:inherit;font-weight:700;cursor:pointer}

.rmn-gallery .rmn-adult-link{display:inline-block;margin-inline-start:12px;border:1px solid #6c768e;border-radius:6px;padding:5px 9px;font-size:.875rem;text-decoration:none}
.rmn-gallery .rmn-adult-link:hover,.rmn-gallery .rmn-adult-link:focus-visible{background:#28324a}



.rmn-gallery .rmn-ad-slot{max-width:100%;overflow-x:auto;margin:16px auto}



.rmn-gallery .rmn-photo{display:block;width:100%;padding:0;background:#28324a;overflow:hidden}
.rmn-gallery .rmn-photo img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover}
.rmn-gallery dialog{width:min(92vw,760px);max-height:90vh;padding:16px;border:1px solid #42495a;border-radius:12px;background:#10131a;color:#f5f3ed}
.rmn-gallery dialog::backdrop{background:#000c}
.rmn-gallery dialog form{text-align:right;margin-bottom:12px}
.rmn-gallery #rmn-before-photo{text-align:center}
.rmn-gallery #rmn-viewer-ad iframe{display:block;max-width:100%;border:0;margin:0 auto 12px}
.rmn-gallery .rmn-photo-scroll{overflow:auto;max-height:65vh;margin-top:12px}
.rmn-gallery #rmn-large-photo{display:block;width:100%;max-width:none;height:auto}


@media(max-width:600px){
  .rmn-gallery .rmn-adult-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .rmn-gallery dialog{width:calc(100vw - 16px);max-height:94dvh;padding:10px}
  .rmn-gallery .rmn-photo-scroll{max-height:62dvh}
  .rmn-gallery dialog button{min-height:44px;padding:8px 10px}
}


.rmn-gallery #rmn-viewer{position:fixed;inset:0;margin:auto;height:fit-content;max-height:calc(100dvh - 24px);overflow:auto}
.rmn-gallery #rmn-photo-panel > div:first-child{display:flex;flex-wrap:wrap;gap:6px}
.rmn-gallery .rmn-photo-scroll{max-height:min(62dvh,calc(100dvh - 160px))}


.rmn-gallery .rmn-adult-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,145px),1fr));gap:10px}
.rmn-gallery .rmn-photo img{aspect-ratio:1;filter:blur(1.25px)}
.rmn-gallery #rmn-viewer:has(#rmn-before-photo:not([hidden])){overflow:hidden;width:min(420px,calc(100vw - 16px))}
.rmn-gallery #rmn-viewer-ad{overflow:hidden}
.rmn-gallery #rmn-viewer-ad iframe{height:min(250px,max(60px,calc(100dvh - 205px)));overflow:hidden}
.rmn-gallery #rmn-viewer button:disabled{opacity:.65;cursor:default}
@media(max-width:600px){
  .rmn-gallery .rmn-adult-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
}



.rmn-gallery .rmn-photo{position:relative}
.rmn-gallery .rmn-photo-label{position:absolute;inset:auto 0 0;padding:6px 4px;background:#10131ae8;color:#fff;font:600 .8125rem/1.2 system-ui,sans-serif;text-align:center}



.rmn-gallery .rmn-photo-label{inset:auto 5% 9%;border-radius:999px;padding:5px 6px;background:#10131abf;font-size:clamp(.625rem,2vw,.78rem)}
.rmn-gallery #rmn-viewer{padding:0;background:#10131a;border:1px solid #657089;box-shadow:0 20px 90px #000b}
.rmn-gallery #rmn-before-photo{padding:16px}
.rmn-gallery #rmn-before-photo p{margin:0 0 8px;color:#cdd5e5;font-size:.875rem}
.rmn-gallery #rmn-show-photo{border-radius:999px}
.rmn-gallery .rmn-photo-scroll{margin:0;height:min(75dvh,700px);max-height:none;overflow:hidden;touch-action:none}
.rmn-gallery .rmn-photo-scroll.is-zoomed{overflow:auto;touch-action:pan-x pan-y}
.rmn-gallery #rmn-large-photo{width:calc(100% * var(--rmn-zoom,1));height:calc(min(75dvh,700px) * var(--rmn-zoom,1));object-fit:contain;user-select:none}
.rmn-gallery .rmn-viewer-info{display:flex;justify-content:space-between;gap:8px;margin:0;padding:10px 12px;color:#cdd5e5;font-size:.8rem}
.rmn-gallery .rmn-touch-hint{display:none}
@media(pointer:coarse){
  .rmn-gallery .rmn-key-hint{display:none}
  .rmn-gallery .rmn-touch-hint{display:inline}
}


.rmn-gallery #rmn-photo-panel{position:relative}
.rmn-gallery #rmn-viewer .rmn-nav{position:absolute;top:46%;z-index:1;width:44px;height:44px;padding:0;border-radius:50%;background:#10131ae8;border:1px solid #a7b6cf;color:#fff;font:32px/1 system-ui}
.rmn-gallery #rmn-previous{left:8px}
.rmn-gallery #rmn-next{right:8px}
.rmn-gallery #rmn-viewer .rmn-nav:disabled{visibility:hidden}


.rmn-gallery{background:radial-gradient(ellipse at 80% 0%,#381b35 0%,transparent 48rem),#120e18;color:#fff4f7}
.rmn-gallery nav{border-color:#ffffff26}
.rmn-gallery nav .rmn-adult-link,.rmn-gallery nav a:last-child{color:#f5b7d3}
.rmn-gallery h1{font-family:Georgia,serif;font-weight:500;letter-spacing:-.045em}
.rmn-gallery .rmn-lead{color:#e0cbd9}
.rmn-gallery .rmn-card{background:linear-gradient(145deg,#42243f,#241b32);border:1px solid #ffffff21}
.rmn-gallery .rmn-card:hover,.rmn-gallery .rmn-card:focus-visible{background:linear-gradient(145deg,#653753,#332442)}
.rmn-after-hours .rmn-shell{max-width:1340px}
.rmn-gallery .rmn-photo{border:1px solid #ffffff24;background:#2a2030;border-radius:12px}
.rmn-gallery .rmn-photo-label{background:#211221dc;border:1px solid #ffffff40}
.rmn-gallery .rmn-photo:focus-visible,.rmn-gallery .rmn-photo:hover{outline:2px solid #e5a0c3;outline-offset:2px}
.rmn-gallery-with-ad{display:grid;grid-template-columns:minmax(0,1fr) 316px;gap:22px;align-items:start}
.rmn-placement{background:#ffffff09;border:1px solid #ffffff22;border-radius:14px;text-align:center;min-width:0;padding:8px 0;overflow:hidden}
.rmn-placement p{margin:0 0 6px;color:#e0cbd9;font-size:.8125rem}
.rmn-placement .rmn-ad-slot{margin:0 auto;overflow:hidden}
.rmn-top-ad{margin:0 0 20px}
.rmn-top-ad .rmn-ad-slot{width:468px;min-height:60px;max-width:none}
.rmn-side-ad .rmn-ad-slot{width:300px;min-height:250px;max-width:none}
.rmn-gallery #rmn-show-photo{background:#f3bdd5;color:#221323}
@media(max-width:900px){
  .rmn-gallery-with-ad{grid-template-columns:minmax(0,1fr)}
  .rmn-side-ad{justify-self:center;width:min(316px,100%)}
}
@media(max-width:540px){.rmn-top-ad .rmn-ad-slot{zoom:.72}}
@media(max-width:390px){.rmn-top-ad .rmn-ad-slot{zoom:.59}}


.rmn-gallery .rmn-photo-scroll,
.rmn-gallery .rmn-photo-scroll.is-zoomed{overflow:hidden;touch-action:none}
.rmn-gallery #rmn-large-photo{width:100%;height:100%;object-fit:contain;object-position:center;transform-origin:center;pointer-events:none}
.rmn-gallery .rmn-photo-scroll.is-zoomed{cursor:grab}
.rmn-gallery .rmn-photo-scroll.is-dragging{cursor:grabbing}
