/*
Theme Name: Darkfolio Block
Description: Dark, minimal block theme for photographers: full-width home stream, 4-column gallery grids, single-photo view, print-store landing page and contact form. Edit everything in the Site Editor.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: darkfolio-block
*/
body{background:linear-gradient(#161616,#0d0d0d) fixed;-webkit-font-smoothing:antialiased}
img{height:auto}
a{text-decoration:none}
.df-pad{padding-left:clamp(16px,3.3vw,84px);padding-right:clamp(16px,3.3vw,84px)}
/* header */
.df-header{padding-top:36px;padding-bottom:36px;position:relative;z-index:20}
.df-site-title{font-weight:200;letter-spacing:.3em;text-transform:uppercase;font-size:22px;margin:0}
.df-site-title a{color:inherit}
.df-header-right{gap:34px}
.df-header .wp-block-navigation{font-size:19px;gap:36px}
.df-header .wp-block-navigation .wp-block-navigation-item__content{padding:4px 0;border-bottom:1px solid transparent}
.df-header .wp-block-navigation .current-menu-item>a,.df-header .wp-block-navigation a:hover{border-bottom-color:currentColor}
.df-header .wp-block-navigation__submenu-container{background:#141414!important;border:1px solid var(--wp--preset--color--line)!important;padding:10px 14px}
.df-header .wp-block-button__link{font-size:14px;padding:4px 10px;line-height:1.5}
.wp-block-button.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--foreground);color:var(--wp--preset--color--background)}
/* titles */
.df-title{font-weight:300;text-transform:uppercase;margin:60px 0 0;font-size:34px;letter-spacing:.02em}
.df-rule{width:min(600px,60%);margin:34px auto 70px;border:0;border-top:1px solid var(--wp--preset--color--line);background:none;height:0}
/* home stream */
.df-home-stream{list-style:none;margin:0;padding:0}
.df-home-stream li{margin:0 0 4px}
/* Fit each photo fully on screen: never taller than the viewport (minus the header), centred */
.df-home-stream{display:flex;flex-direction:column;gap:clamp(24px,5vh,60px);padding-bottom:60px}
.df-home-stream li{margin:0}
.df-home-stream .wp-block-post-featured-image{display:flex;justify-content:center;margin:0}
.df-home-stream .wp-block-post-featured-image a{display:block;max-width:100%}
.df-home-stream img{width:auto;max-width:100%;height:auto;max-height:calc(100vh - 140px);max-height:calc(100svh - 140px);object-fit:contain;display:block;margin:0 auto}
/* gallery grid */
.df-gallery{padding:0 clamp(16px,2.5vw,64px) 80px}
.df-gallery .wp-block-post-template{gap:48px 46px}
.df-gallery .wp-block-post-featured-image{overflow:hidden;background:#000;margin:0}
.df-gallery .wp-block-post-featured-image img{transition:transform .5s,opacity .3s;width:100%}
.df-gallery .wp-block-post-featured-image a:hover img{transform:scale(1.03);opacity:.9}
.df-caption{margin-top:20px;font-size:14px;letter-spacing:.06em;text-transform:uppercase;color:var(--wp--preset--color--muted)}
.df-caption a{color:inherit}
@media(max-width:1100px){.df-gallery .wp-block-post-template.is-layout-grid{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:600px){.df-gallery .wp-block-post-template.is-layout-grid{grid-template-columns:1fr!important}.df-title{font-size:26px}}
.gallery-filter{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 30px;margin:-30px 0 50px}
.gallery-filter a{font-size:15px;color:var(--wp--preset--color--muted);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid transparent}
.gallery-filter a:hover,.gallery-filter a.on{color:var(--wp--preset--color--foreground);border-bottom-color:currentColor}
/* store cards */
.df-store{display:grid;grid-template-columns:repeat(4,1fr);gap:48px 40px;padding:0 clamp(16px,2.5vw,64px) 80px;margin:0}
.df-store figure{margin:0;text-align:center}
.df-store .thumb{aspect-ratio:4/3;overflow:hidden;background:#000}
.df-store .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.df-store a:hover img{transform:scale(1.03)}
.df-store figcaption{margin-top:20px;font-size:20px;text-transform:uppercase}
.df-store .price{display:block;margin-top:12px;color:var(--wp--preset--color--muted);text-transform:none}
@media(max-width:1100px){.df-store{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.df-store{grid-template-columns:1fr}}
.df-intro{color:var(--wp--preset--color--muted);margin-bottom:70px}
/* single photo */
.df-single-photo img{width:100%}
.df-single-photo .df-caption{text-align:center}
.df-photo-nav{padding:10px 0 80px;color:var(--wp--preset--color--muted);font-size:14px;text-transform:uppercase;letter-spacing:.06em}
/* blog */
.df-meta{color:var(--wp--preset--color--muted);font-size:14px;text-transform:uppercase;letter-spacing:.06em}
/* contact */
.contact-form label{display:block;font-size:14px;text-transform:uppercase;letter-spacing:.06em;color:var(--wp--preset--color--muted);margin-bottom:6px}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],textarea,select{width:100%;background:#1c1c1c;color:var(--wp--preset--color--foreground);border:1px solid var(--wp--preset--color--line);border-radius:4px;padding:12px 14px;font:inherit}
input:focus,textarea:focus,select:focus{outline:0;border-color:#666}
.contact-form .row{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
.contact-form .hp{position:absolute;left:-9999px}
.contact-form button{cursor:pointer;font:inherit;font-size:16px;background:none;color:inherit;border:1px solid currentColor;border-radius:4px;padding:10px 26px}
.contact-form button:hover{background:var(--wp--preset--color--foreground);color:var(--wp--preset--color--background)}
.df-notice{padding:14px 18px;border:1px solid var(--wp--preset--color--line);border-radius:4px}
.df-notice.ok{border-color:#3d6b45}.df-notice.err{border-color:#7a3b3b}
@media(max-width:600px){.contact-form .row{grid-template-columns:1fr}}
/* footer */
.df-footer{border-top:1px solid var(--wp--preset--color--line);color:var(--wp--preset--color--muted);font-size:14px;text-align:center;padding-top:40px;padding-bottom:40px}
/* WooCommerce (block-based templates) */
.wc-block-components-product-price,.wc-block-grid__product-price{color:var(--wp--preset--color--muted)}
.wc-block-grid__product-title{text-transform:uppercase;font-weight:300}
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{color:var(--wp--preset--color--foreground)}
.wc-block-components-text-input input,.wc-block-components-select select{background:#1c1c1c!important;color:var(--wp--preset--color--foreground)!important}

/* Home slideshow (enabled by assets/js/slider.js; plain stack shows without JavaScript) */
.df-slider-stage{position:relative}
.df-home-stream.df-slider{display:block;position:relative;gap:0;padding:0;height:calc(100vh - 140px);height:calc(100svh - 140px);min-height:320px}
.df-slider>li{position:absolute;inset:0;margin:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.df-slider>li.is-active{opacity:1;visibility:visible;z-index:1}
.df-slider .wp-block-post-featured-image{height:100%;margin:0}
.df-slider .wp-block-post-featured-image a{display:flex;height:100%;align-items:center;justify-content:center;max-width:100%}
.df-home-stream.df-slider img{max-height:100%;max-width:100%;width:auto;height:auto}
.df-nav-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:48px;height:72px;border:0;background:rgba(0,0,0,.3);color:#fff;font-size:38px;line-height:1;cursor:pointer;opacity:.6;transition:opacity .2s,background .2s}
.df-nav-btn:hover,.df-nav-btn:focus-visible{opacity:1;background:rgba(0,0,0,.6)}
.df-prev{left:0}.df-next{right:0}
.df-dots{display:flex;justify-content:center;align-items:center;gap:12px;padding:18px 0 40px;color:var(--wp--preset--color--muted);font-size:14px;letter-spacing:.06em}
.df-dots button{width:9px;height:9px;padding:0;border-radius:50%;border:1px solid var(--wp--preset--color--muted);background:none;cursor:pointer}
.df-dots button.is-active{background:var(--wp--preset--color--foreground);border-color:var(--wp--preset--color--foreground)}
@media(max-width:600px){.df-nav-btn{width:36px;height:56px;font-size:28px}}

/* No-JavaScript fallback: show only the first photo. The slideshow script adds .df-slider, which shows them all again. */
.df-home-stream>li:not(:first-child){display:none}
.df-home-stream.df-slider>li{display:block}
