/*
Theme Name: Dream Girl
Version: 1.8.0
Description: Minimal dark photographic collection theme.
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dream-girl
*/
*{box-sizing:border-box}body{margin:0;background:#121212;color:#eee;font:16px/1.6 system-ui,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #fff;outline-offset:4px}header.site,main,footer.site{max-width:1440px;margin:auto;padding:24px clamp(16px,4vw,56px)}header.site{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #333}.brand{font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.2;font-weight:700;flex-shrink:0}nav{display:flex;gap:16px;flex-wrap:wrap;font-size:.9rem}h1{font-size:clamp(1.7rem,4vw,2.5rem);line-height:1.2;margin:20px 0 28px}h2{font-size:1.15rem;margin:10px 0 4px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 20px}.thumb{display:flex;align-items:center;justify-content:center;aspect-ratio:16/10;background:#222;overflow:hidden;border-radius:5px}.thumb img{width:100%;height:100%;object-fit:cover}.details{color:#aaa;font-size:.9rem;margin:4px 0}.date{color:#999;font-size:.75rem;display:block}.dg-search-form{display:flex;gap:8px;margin:0 0 28px}input,button{font:inherit;color:#eee;background:#252525;border:1px solid #555;border-radius:4px;padding:9px 14px}input{width:min(100%,420px);min-width:0}button{cursor:pointer}.entry{max-width:1100px;margin:auto}.entry img{max-width:100%;height:auto}.entry figure{margin:0 0 20px}.entry .wp-block-gallery{display:flex;flex-wrap:wrap;gap:16px}.entry .wp-block-gallery figure.wp-block-image{flex:1 1 280px;max-width:100%;margin:0}.entry .wp-block-gallery img{width:100%;height:auto;object-fit:contain!important}.entry img[data-dg-view]{cursor:zoom-in}.pagination{margin:30px 0;display:flex;gap:12px;flex-wrap:wrap}footer.site{color:#999;font-size:.8rem;border-top:1px solid #333}dialog.viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;border:0;background:#080808;color:#eee;padding:12px;overflow:hidden}dialog.viewer[open]{display:flex;flex-direction:column}dialog::backdrop{background:#080808}.viewer-bar{display:flex;justify-content:flex-end;align-items:center;gap:10px}.viewer-count{margin-right:auto}.viewer-stage{flex:1;min-height:0;display:flex;align-items:center;gap:8px}.viewer-stage img{flex:1;min-width:0;width:100%;height:100%;object-fit:contain}.viewer-caption{text-align:center;min-height:1.5em}.viewer button{background:#222}.viewer button[hidden]{display:none}@media(max-width:800px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}header.site{align-items:flex-start;flex-direction:column}}@media(max-width:480px){.grid{grid-template-columns:1fr}.viewer-stage{gap:2px}.viewer-stage button{padding:8px}}

/* Shared responsive collection layout */
.grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.photo-grid-object,.photo-grid-object>a{min-width:0;display:flex;flex-direction:column;height:100%}
.photo-grid-object .thumb,.category-grid .thumb{aspect-ratio:16/10}
.photo-grid-object .card-body{display:flex;flex-direction:column;height:calc(3 * 1.5em + 1.5em + 24px);font-size:.9rem;padding:8px 0;min-width:0}
.photo-grid-object .details{line-height:1.5;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.photo-grid-object .date{margin-top:auto;line-height:1.5;min-height:1.5em}
.photo-grid-object .date-slot{margin-top:auto;min-height:1.125rem}
.category-grid h2{text-align:center;margin:0 0 10px;overflow-wrap:anywhere}.category-grid a{display:flex;flex-direction:column;height:100%}.category-grid .thumb{margin-top:auto}
.keyword-pills{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.keyword-pill{background:#292929;border:1px solid #444;border-radius:7px;padding:3px 10px;font-size:.8rem;color:#ddd}.keyword-pill:hover{background:#383838}
@media(max-width:1023px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.grid{grid-template-columns:1fr}}

.entry{text-align:left}.entry .post-title{margin-bottom:4px}.entry .post-date{margin-bottom:20px}.entry .post-photo{margin:0 0 20px;text-align:left}.entry .post-photo img{display:block;max-width:100%;height:auto}.entry .keyword-pills{justify-content:flex-start}

/* Search form must not share the WordPress body.search class. */
body{display:block}header.site,main,footer.site{width:100%}
.dg-search-form input{flex:1;width:auto;max-width:420px}
.photo-grid-object .card-body{height:auto;flex:1;min-height:calc(7 * 1.5em + 16px)}
.photo-grid-object .card-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5;min-height:3em;overflow-wrap:anywhere}
.photo-grid-object .details{min-height:4.5em;flex-shrink:0}
.photo-grid-object .date-slot{padding-top:8px;min-height:calc(2 * 1.125rem + 8px)}

/* Gallery cover: progressively enhanced after viewer registers every photograph. */
.entry .wp-block-gallery.dg-gallery-ready{display:block!important}
.entry .dg-gallery-ready .blocks-gallery-grid{display:block!important;margin:0;padding:0;list-style:none}
.entry .dg-gallery-ready .dg-gallery-hidden{display:none!important}
.entry .dg-gallery-ready .dg-gallery-cover{position:relative;display:table!important;width:auto!important;max-width:100%!important;margin:0!important;flex:none!important}
.entry .dg-gallery-ready .dg-gallery-cover img{display:block;width:auto!important;max-width:100%;height:auto!important;object-fit:contain!important}
.entry .dg-gallery-ready .dg-gallery-cover a{display:block;width:auto!important;height:auto!important}
.dg-gallery-count{position:absolute;top:12px;right:12px;background:rgba(0,0,0,.78);color:#fff;padding:4px 10px;border-radius:5px;font-size:.85rem;pointer-events:none;z-index:2}

/* Gallery-only view controls and fixed-cell thumbnail grid. */
.entry .post-date{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dg-gallery-toggle{display:inline-flex;gap:0;margin-left:auto;margin-bottom:8px}
.post-date .dg-gallery-toggle{margin-bottom:0}
.dg-gallery-toggle button{font-size:.8rem;padding:5px 12px;border-radius:0}
.dg-gallery-toggle button:first-child{border-radius:5px 0 0 5px}
.dg-gallery-toggle button:last-child{border-radius:0 5px 5px 0}
.dg-gallery-toggle button[aria-pressed=true]{background:#555;color:#fff}
.entry .wp-block-gallery.dg-gallery-ready.dg-gallery-grid-view,.entry .dg-gallery-ready.dg-gallery-grid-view .blocks-gallery-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px!important;align-items:start;width:100%}
.entry .wp-block-gallery.dg-gallery-grid-view:has(>.blocks-gallery-grid){display:block!important}
.entry .dg-gallery-ready.dg-gallery-grid-view :is(figure.wp-block-image,li.blocks-gallery-item,.dg-gallery-cover,.dg-gallery-hidden){display:block!important;position:relative;width:100%!important;max-width:100%!important;min-width:0;margin:0!important;aspect-ratio:16/10;overflow:hidden;border-radius:5px;flex:none!important}
.entry .dg-gallery-grid-view :is(figure.wp-block-image,li.blocks-gallery-item) :is(a,figure){display:block!important;width:100%!important;height:100%!important;margin:0!important}
.entry .dg-gallery-ready.dg-gallery-grid-view img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important}
.entry .dg-gallery-grid-view :is(figcaption,.dg-gallery-count){display:none!important}
@media(max-width:1023px){.entry .wp-block-gallery.dg-gallery-ready.dg-gallery-grid-view,.entry .dg-gallery-ready.dg-gallery-grid-view .blocks-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.entry .wp-block-gallery.dg-gallery-ready.dg-gallery-grid-view,.entry .dg-gallery-ready.dg-gallery-grid-view .blocks-gallery-grid{grid-template-columns:minmax(0,1fr)}}
