/*
Theme Name: New Blouse Design
Theme URI: https://newblousedesign.com/
Author: New Blouse Design
Description: Gallery theme for saree and lehenga blouse designs: portrait design cards with fabric, occasion and tailor notes, a full-screen viewer, grouped browsing and image SEO.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newblousedesign
*/

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/mulish-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/mulish-latin-700-normal.woff2") format("woff2"); }

:root {
	--ivory: #fbf7f4;
	--paper: #ffffff;
	--ink: #2b1b24;
	--muted: #6e5a64;
	--wine: #6d1f45;
	--wine-dark: #4e1231;
	--rose: #f5e4ea;
	--rose-line: #ead0da;
	--gold: #a8812f;
	--line: #eadfe3;
	--radius: 14px;
	--wrap: 1160px;
	--serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 3px; }
a:hover { color: var(--wine-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); letter-spacing: .2px; }
h1 { font-size: clamp(2rem, 5.2vw, 3.1rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.15rem); margin: 1.6em 0 .45em; }
h3 { font-size: 1.25rem; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }

/* ---------------------------------------------------------------- header */
.nb-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 247, 244, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nb-head .wrap { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.nb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nb-brand svg { width: 34px; height: 34px; flex: none; }
.nb-brand b { font: 600 1.45rem/1 var(--serif); letter-spacing: .3px; white-space: nowrap; }
@media (max-width: 420px) { .nb-brand b { font-size: 1.18rem; } .nb-brand svg { width: 30px; height: 30px; } .nb-menu > summary { padding: 7px 11px; font-size: .85rem; } .nb-head .wrap { gap: 8px; } }
.nb-menu > summary { white-space: nowrap; list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--wine); border-radius: 999px; color: var(--wine); font-weight: 700; font-size: .92rem; }
.nb-menu > summary::-webkit-details-marker { display: none; }
.nb-menu[open] > summary { background: var(--wine); color: #fff; }
.nb-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(43, 27, 36, .12); max-height: calc(100vh - 62px); overflow: auto; }
.nb-panel .wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 26px; padding-top: 18px; padding-bottom: 22px; align-items: start; }
.nb-panel h3 { font-size: 1.1rem; color: var(--wine); margin: 8px 0 4px; }
.nb-panel ul { list-style: none; margin: 0; padding: 0; }
.nb-panel li a { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nb-panel li a:hover { color: var(--wine); text-decoration: underline; }

/* ----------------------------------------------------------- page header */
.nb-crumbs { font-size: .86rem; color: var(--muted); margin: 18px 0 0; }
.nb-crumbs a { color: var(--muted); }
.nb-crumbs span[aria-hidden] { margin: 0 6px; }
.nb-hero { padding: 6px 0 4px; }
.nb-kicker { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.nb-kicker li { background: var(--rose); color: var(--wine-dark); border: 1px solid var(--rose-line); border-radius: 999px; padding: 3px 12px; font-size: .84rem; font-weight: 700; }
.nb-intro { max-width: 780px; font-size: 1.05rem; }

/* jump links */
.nb-jump { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; margin: 6px 0 0; scrollbar-width: thin; }
.nb-jump a { flex: none; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-size: .88rem; white-space: nowrap; }
.nb-jump a:hover { border-color: var(--wine); color: var(--wine); }

/* --------------------------------------------------------------- gallery */
.nb-sec > p { max-width: 780px; }
.nb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 6px; }
@media (min-width: 760px) { .nb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.nb-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.nb-zoom { display: block; position: relative; aspect-ratio: 4 / 5; background: var(--rose); overflow: hidden; }
.nb-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nb-zoom:hover img { transform: scale(1.03); }
.nb-zoom::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d1f45' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.nb-card figcaption { padding: 11px 12px 13px; font-size: .9rem; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nb-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.nb-tags li { font-size: .74rem; font-weight: 700; letter-spacing: .2px; padding: 2px 8px; border-radius: 6px; background: var(--ivory); border: 1px solid var(--line); color: var(--muted); }
.nb-tags li.f { color: var(--wine); border-color: var(--rose-line); background: var(--rose); }
.nb-card .cap { margin: 0; color: var(--ink); }
.nb-card .tip { margin: auto 0 0; padding-top: 7px; border-top: 1px dashed var(--line); color: var(--muted); font-size: .84rem; }
.nb-card .tip b { color: var(--gold); font-weight: 700; }
@media (max-width: 480px) { .nb-card figcaption { padding: 9px 9px 11px; font-size: .84rem; } .nb-card .tip { font-size: .8rem; } }

/* ---------------------------------------------------------- guide + faq */
.nb-guide { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 10px; margin: 28px 0; }
.nb-guide h2 { margin-top: .9em; }
.table-scroll { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--rose); color: var(--wine-dark); }
.nb-faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin: 10px 0; }
.nb-faq summary { cursor: pointer; padding: 14px 44px 14px 16px; position: relative; list-style: none; }
.nb-faq summary::-webkit-details-marker { display: none; }
.nb-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 600 1.5rem/1 var(--serif); color: var(--wine); }
.nb-faq details[open] summary::after { content: "\2212"; }
.nb-faq summary h3 { display: inline; font-size: 1.15rem; }
.nb-faq details > div { padding: 0 16px 6px; }

/* --------------------------------------------------------------- tiles */
.nb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 8px; }
@media (min-width: 640px) { .nb-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .nb-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.nb-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--rose); text-decoration: none; }
.nb-tile img { width: 100%; height: 100%; object-fit: cover; }
.nb-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 10px; color: #fff; background: linear-gradient(transparent, rgba(43, 18, 32, .82)); line-height: 1.25; }
.nb-tile b { display: block; font: 600 1.15rem/1.15 var(--serif); }
.nb-tile small { font-size: .76rem; opacity: .9; }
.nb-more { margin: 34px 0 10px; }

/* ---------------------------------------------------------------- home */
.nb-home-hero { padding: 34px 0 10px; text-align: center; }
.nb-home-hero h1 { margin-bottom: .2em; }
.nb-home-hero p.lead { color: var(--muted); max-width: 640px; margin: 0 auto 18px; }
.nb-groupnav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
.nb-groupnav a { display: inline-block; text-decoration: none; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rose-line); color: var(--wine-dark); font-weight: 700; font-size: .9rem; }
.nb-group { padding-top: 6px; }
.nb-group h2 { display: flex; align-items: baseline; gap: 10px; }
.nb-group h2 small { font: 400 .9rem var(--sans); color: var(--muted); }

/* ------------------------------------------------------------- content */
.nb-main { padding-bottom: 40px; }
.nb-static { max-width: 780px; padding: 10px 0 40px; }
.nb-ad { margin: 26px 0; text-align: center; min-height: 0; }

/* -------------------------------------------------------------- footer */
.nb-foot { background: var(--wine-dark); color: #f3e6ec; margin-top: 30px; padding: 34px 0 22px; font-size: .92rem; }
.nb-foot a { color: #fff; text-decoration: none; }
.nb-foot a:hover { text-decoration: underline; }
.nb-foot .cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 24px; }
.nb-foot h3 { color: #fff; font-size: 1.15rem; margin: 10px 0 6px; }
.nb-foot ul { list-style: none; margin: 0; padding: 0; }
.nb-foot li { padding: 3px 0; }
.nb-foot .legal { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 22px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; color: #e3cfd8; }

/* -------------------------------------------------------------- viewer */
.nb-view { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(28, 12, 21, .96); color: #fff; }
.nb-view::backdrop { background: rgba(28, 12, 21, .96); }
.nb-view .stage { position: absolute; inset: 54px 0 118px; display: flex; align-items: center; justify-content: center; }
.nb-view .stage img { max-width: 94vw; max-height: 100%; object-fit: contain; border-radius: 8px; }
.nb-view .bar { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.nb-view .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 16px; text-align: center; }
.nb-view .info p { margin: 0 auto 10px; max-width: 760px; font-size: .92rem; color: #f2e4ea; }
.nb-view button, .nb-view .act a { font: 700 .86rem var(--sans); color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; }
.nb-view .act { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nb-view .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; font-size: 1.4rem; }
.nb-view .prev { left: 10px; } .nb-view .next { right: 10px; }
.nb-view .count { font-size: .85rem; opacity: .8; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .nb-zoom img { transition: none; } }
