/*
Theme Name: Kholoud Rozi
Theme URI: https://rozidesign.com
Author: Rayan Rozi
Description: Minimal black and white portfolio divided by clients.
Version: 0.1.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kholoud-rozi
*/

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Jost,system-ui,-apple-system,sans-serif;font-weight:300;font-size:17px;line-height:1.55;color:#111;background:#fff;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img,video{max-width:100%;height:auto}
.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden}

/* header and footer */
.site-header{display:flex;justify-content:space-between;align-items:center;padding:26px 40px;position:sticky;top:0;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);z-index:10}
.admin-bar .site-header{top:32px}
.brand{text-transform:uppercase;letter-spacing:.2em;font-weight:400;font-size:13px}
.site-nav a{margin-left:28px;text-transform:uppercase;letter-spacing:.14em;font-size:12px;color:#777}
.site-nav a.active,.site-nav a:hover{color:#111}
#main{padding:0 40px;max-width:1240px;margin:0 auto;min-height:60vh}
.site-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:28px 40px;font-size:13px;letter-spacing:.06em;color:#777;border-top:1px solid #e6e6e6;margin-top:8vh}
.site-footer a{margin-right:20px}
.site-footer a:hover{color:#111}

/* home: hero and client tiles */
.hero{text-align:center;padding:11vh 0 8vh}
.hero h1{font-size:clamp(26px,4.6vw,54px);text-transform:uppercase;letter-spacing:.24em;font-weight:300;margin:0 0 14px;padding-left:.24em}
.hero p{color:#777;margin:0 auto;max-width:44ch;font-size:16px}
/* tiles wrap in rows of three; a short last row sits centered */
.tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:44px 32px;padding-bottom:8vh}
.tile{display:block;width:calc((100% - 64px)/3)}
/* images are never cropped: each cover is shown whole, standing on its caption line. The box is 5:4, the shape of
   her covers, so they fill it exactly; other shapes are shown whole with white at the sides or above. */
.tile .frame{aspect-ratio:5/4;background:#fff}
.tile .frame:empty{background:#f4f4f4}
.tile .frame img{width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block;transition:opacity .3s ease}
.tile:hover .frame img{opacity:.85}
.tile h2{font-size:13px;text-transform:uppercase;letter-spacing:.16em;font-weight:400;margin:16px 0 3px}
.tile p{margin:0;color:#777;font-size:14px}
.empty{color:#777;padding:10vh 0;text-align:center}

/* client page */
.client-head{display:grid;grid-template-columns:1fr 1.6fr;gap:48px;padding:8vh 0 6vh;border-bottom:1px solid #e6e6e6}
.client-head h1{font-size:clamp(22px,2.8vw,34px);text-transform:uppercase;letter-spacing:.16em;font-weight:300;margin:0 0 10px;line-height:1.2}
.client-head .meta{color:#777;font-size:14px;margin:0}
.client-head .intro{font-size:clamp(17px,1.45vw,21px);line-height:1.5;margin:0}
.entry-content{padding-bottom:24px}
.entry-content h2.wp-block-heading{font-size:12px;text-transform:uppercase;letter-spacing:.18em;font-weight:400;color:#777;margin:56px 0 10px}
.entry-content h3.wp-block-heading{font-size:15px;font-weight:400;margin:28px 0 8px}
.entry-content p{max-width:62ch;color:#444;margin:0 0 8px}
.entry-content ul.wp-block-list{max-width:62ch;color:#666;font-size:15px;padding-left:18px;margin:4px 0 16px}
.entry-content>.wp-block-image{margin:28px 0}
.entry-content>.wp-block-image img{cursor:zoom-in}

/* galleries: columns of images, each shown whole at its own shape. Never cropped, no frames,
   whatever the gallery's "Crop images" setting says. */
.entry-content .wp-block-gallery.has-nested-images{display:block!important;column-count:3;column-gap:24px;margin:28px 0 8px}
.entry-content .wp-block-gallery.has-nested-images:has(>figure:only-child),.entry-content .wp-block-gallery.has-nested-images.columns-1{column-count:1}
.entry-content .wp-block-gallery.has-nested-images:has(>figure:first-child:nth-last-child(2)),.entry-content .wp-block-gallery.has-nested-images.columns-2{column-count:2}
.entry-content .wp-block-gallery.has-nested-images.columns-4{column-count:4}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image{display:block!important;width:auto!important;max-width:none;margin:0 0 24px!important;break-inside:avoid;flex:none!important}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image>a{display:block!important}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image img{display:block;width:100%!important;height:auto!important;object-fit:fill!important;flex:none!important;cursor:zoom-in;transition:opacity .3s ease}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:hover img{opacity:.85}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image a[target="_blank"] img{cursor:pointer}
.entry-content .wp-block-gallery figcaption{display:none}

/* videos: a group with the class kr-video-grid shows looping videos in columns, whole */
.entry-content .kr-video-grid{display:block;column-count:3;column-gap:24px;margin:28px 0 8px}
.entry-content .kr-video-grid>*{display:block;margin:0 0 24px!important;max-width:none;break-inside:avoid}
.entry-content .kr-video-grid video{width:100%;height:auto;display:block}
.entry-content>.wp-block-video{margin:28px 0}
.entry-content .wp-block-video.kr-tall-video video{max-height:80vh;width:auto;max-width:100%;background:#f4f4f4}

.client-nav{display:flex;justify-content:space-between;gap:16px;padding:40px 0 48px;border-top:1px solid #e6e6e6;font-size:12px;text-transform:uppercase;letter-spacing:.14em;color:#777}
.client-nav a:hover{color:#111}

/* lightbox */
dialog.lightbox{border:0;padding:0;background:transparent;max-width:94vw;max-height:94vh;outline:none;overflow:auto;scrollbar-width:thin}
dialog.lightbox::backdrop{background:rgba(255,255,255,.97)}
.lightbox img{max-width:94vw;max-height:90vh;width:auto;height:auto;display:block;background:#f4f4f4}
dialog.lightbox.tall img{max-height:none;width:min(94vw,640px)}
.lightbox .close{position:fixed;top:14px;right:22px;font-size:30px;line-height:1;background:none;border:0;cursor:pointer;color:#111;font-family:inherit}

/* pages, such as About */
.page-content h1{font-size:clamp(24px,3.2vw,38px);font-weight:300;letter-spacing:.02em;margin:10vh 0 28px}
.page-content .entry-content>p{font-size:clamp(20px,2.4vw,32px);line-height:1.3;max-width:34ch;margin:0 0 24px;color:#111;font-weight:300}
.page-content .entry-content .wp-block-columns{margin:10vh 0 6vh;font-size:15px;gap:32px}
.page-content .entry-content .wp-block-columns h2.wp-block-heading,.page-content .entry-content .wp-block-columns h3.wp-block-heading{font-size:12px;text-transform:uppercase;letter-spacing:.18em;color:#777;font-weight:400;margin:0 0 12px}
.page-content .entry-content .wp-block-columns p{font-size:15px;max-width:none;margin:0 0 6px;color:#111}
.page-content .entry-content .wp-block-columns ul{list-style:none;padding:0;margin:0;line-height:1.9;font-size:15px;color:#111}
/* page images are shown at their own size, never enlarged (a small photo would go soft) */
.page-content .entry-content .wp-block-image img{width:auto;max-width:100%;height:auto}
.page-content .entry-content figure.aligncenter{display:block;margin-left:auto;margin-right:auto;text-align:center}
.page-content .entry-content figure{margin:0 0 24px}
.error404 .page-content{padding:10vh 0}

@media (max-width:960px){.tile{width:calc((100% - 32px)/2)}}
@media (max-width:782px){.admin-bar .site-header{top:46px}}
@media (max-width:720px){
  body{font-size:16px}
  .site-header{padding:18px 20px}
  .site-nav a{margin-left:18px}
  #main{padding:0 20px}
  .hero{padding:8vh 0 6vh}
  .tiles{gap:36px}
  .tile{width:100%}
  .client-head{grid-template-columns:1fr;gap:20px}
  .entry-content .wp-block-gallery.has-nested-images,.entry-content .wp-block-gallery.has-nested-images.columns-4,.entry-content .kr-video-grid{column-count:2;column-gap:12px}
  .entry-content .wp-block-gallery.has-nested-images figure.wp-block-image,.entry-content .kr-video-grid>*{margin-bottom:12px!important}
  .page-content .entry-content .wp-block-columns{margin:6vh 0 4vh}
  .site-footer{padding:24px 20px}
}
