/* Finished designs stay whole; each collection keeps its original proportions. */
.project-dialog-close{position:fixed;z-index:2;top:calc(4dvh + 12px);right:max(42px,calc((100vw - 896px)/2 + 12px));display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff36;border-radius:50%;background:#142027;color:#e0edef;font-size:28px;line-height:1;box-shadow:0 4px 16px #0004}
.project-dialog-close:hover{background:#28414a}
#project-modal .modal>div:first-child>div:first-child{padding-right:36px}
.project-contact-sheet{display:flex;align-items:center;justify-content:center;gap:9px;height:100%;padding:20px 16px 46px;background:#eee7dc}
.project-contact-sheet[data-brand="7pie"]{background:#e8e7e3}
.project-contact-sheet[data-brand="montaluce-brand"]{background:#d8dedc}
.project-artwork .project-contact-sheet img{min-width:0;flex:1;width:0;height:100%;object-fit:contain!important;object-position:center;filter:drop-shadow(0 5px 5px #0003)}
.project-card:hover .project-contact-sheet img{transform:translateY(-3px)}
#modal-visual[data-layout="editorial"]{aspect-ratio:auto;max-height:none!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px;background:#172026}
#modal-visual[data-layout="editorial"] .guide-lead-sample img{aspect-ratio:4/5;height:auto;object-fit:contain;object-position:center;background:#eae6de}
.collection-nav{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 30px;padding-bottom:25px;border-bottom:1px solid #ffffff20}
.collection-nav button{min-height:44px;padding:10px 14px;border:1px solid #ffffff2b;border-radius:22px;color:#cde8e8;font-size:12px;line-height:1.4;text-align:left;background:#132128}
.collection-nav button:hover{border-color:#85dcdf;background:#1c333a}
.project-gallery .sample-section{margin:40px 0;scroll-margin-top:24px;outline:none}
.project-gallery .sample-section:focus-visible{outline:2px solid #65e7ef;outline-offset:8px;border-radius:10px}
.project-gallery .sample-section h4{font-family:'Space Grotesk',sans-serif;font-size:25px;font-weight:500;letter-spacing:-.7px;line-height:1.2;margin:0 0 12px}
.collection-description{max-width:65ch;font-size:14px;line-height:1.75;color:#bac8cf;margin:0 0 22px}
.sample-section[data-layout]:not([data-layout="default"]) .sample-grid{gap:18px;align-items:start}
.sample-section[data-layout]:not([data-layout="default"]) .sample-button{transition:border-color .2s,background .2s;text-align:left;background:#182025}
.sample-section[data-layout]:not([data-layout="default"]) .sample-button:hover{border-color:#85dcdf;background:#1f3037}
.sample-section[data-layout="editorial"] .sample-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.sample-section[data-layout="editorial"] .sample-button img{height:auto;aspect-ratio:4/5;object-fit:contain;background:#eae6de}
.sample-section[data-layout="banners"] .sample-grid{grid-template-columns:1fr}
.sample-section[data-layout="banners"] .sample-button img{height:auto;max-height:none;object-fit:contain}
.sample-section[data-layout="campaign"] .sample-grid{grid-template-columns:.8fr 1.2fr;align-items:center}
.sample-section[data-layout="campaign"] .sample-button:first-child{grid-row:span 2}
.sample-section[data-layout="campaign"] .sample-button img{height:auto;object-fit:contain}
.sample-section[data-layout="single"] .sample-grid{grid-template-columns:minmax(0,420px);justify-content:center;padding:26px;background:radial-gradient(ellipse at center,#1c3238,#11191f);border:1px solid #ffffff17;border-radius:18px}
.sample-section[data-layout="single"] .sample-button img{height:auto;max-height:630px;object-fit:contain}
.sample-section[data-layout="posters"] .sample-button img{height:320px;object-fit:contain;background:#10161b}
.sample-section[data-layout="photos"] .sample-button img{height:240px;object-fit:contain;background:#10161b}
@media(max-width:640px){
  .project-dialog-close{top:calc(2dvh + 10px);right:18px}
  #project-modal .modal>div:first-child{padding:22px 18px}
  #modal-title{font-size:29px;line-height:1.12}
  #modal-meta{font-size:12px;line-height:1.6}
  #project-modal [aria-label="Close project"]{flex-shrink:0}
  #modal-visual[data-layout="editorial"]{gap:8px;padding:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #modal-visual[data-layout="editorial"] .guide-lead-sample:last-child{display:none}
  .collection-nav{gap:7px;margin-bottom:24px}
  .collection-nav button{font-size:11px;padding:9px 12px}
  .project-gallery .sample-section h4{font-size:23px}
  .sample-section[data-layout="editorial"] .sample-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .sample-section[data-layout="campaign"] .sample-grid{grid-template-columns:1fr}
  .sample-section[data-layout="campaign"] .sample-button:first-child{grid-row:auto;max-width:280px;margin:auto}
  .sample-section[data-layout="single"] .sample-grid{padding:15px}
  .sample-section[data-layout="posters"] .sample-button img{height:auto;max-height:440px}
  .sample-caption{padding:10px;font-size:11px;line-height:1.5}
}
@media(prefers-reduced-motion:reduce){.project-contact-sheet img,.sample-button{transition:none!important}}
