/* AFRA v6.22.17 — Digital portfolio, owner gallery editor and photo-backed glass cards */
.offer-grid .offer {position:relative;isolation:isolate;overflow:hidden;}
.offer-grid .offer > :not(.offer-background) {position:relative;z-index:2;}
.offer-grid .offer.has-cover {min-height:370px;color:#fff;border:1px solid rgba(255,255,255,.56);background:#112c47;box-shadow:0 19px 42px rgba(15,46,79,.17);}
.offer-grid .offer.has-cover .offer-background {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;}
.offer-grid .offer.has-cover::before {content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(165deg,rgba(7,27,49,.36),rgba(9,39,68,.58) 64%,rgba(8,25,49,.87));pointer-events:none;}
.offer-grid .offer.has-cover .offer-kind {color:#e8f7ff;background:rgba(20,56,92,.48);border-color:rgba(255,255,255,.45);backdrop-filter:blur(9px);}
.offer-grid .offer.has-cover .offer-icon {background:rgba(215,237,250,.18);color:#fff;border:1px solid rgba(255,255,255,.3);backdrop-filter:blur(8px);}
.offer-grid .offer.has-cover h3,.offer-grid .offer.has-cover p {color:#fff;text-shadow:0 2px 7px rgba(0,0,0,.25);}
.offer-grid .offer.has-cover .features {color:#e8f8ff;background:rgba(189,221,245,.13);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(7px);}
.offer-grid .offer.has-cover .offer-bottom {border-color:rgba(255,255,255,.3);}
.offer-grid .offer.has-cover .offer-bottom small {color:#d8e9f5;}
.offer-grid .offer.has-cover .offer-bottom strong {color:#ffd7e5;}
.offer-grid .offer.has-cover .offer-links :is(button,a) {color:#fff;}
.offer-grid .offer-links .open-gallery {display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 12px;border-radius:11px;background:linear-gradient(120deg,#c22d63,#da4674);color:#fff;font-weight:850;min-height:38px;white-space:normal;text-align:center;box-shadow:0 7px 17px rgba(43,11,40,.2);}
.offer-grid .offer-links .open-gallery:hover {filter:brightness(1.08);}
.offer-grid .offer.has-cover .offer-links .demo,.offer-grid .offer.has-cover .offer-links .request-offer {background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);border-radius:10px;padding:8px 11px;text-align:center;}
.offer-grid .offer.has-cover .offer-links .demo {color:#e7ffff;}

/* Native dialog supports iOS Safari and keyboard Escape; no full-screen page overflow. */
.tech-gallery-dialog {position:fixed;inset:0;margin:auto;padding:0;max-width:min(94vw,920px);width:920px;max-height:min(92dvh,880px);overflow:auto;border:1px solid rgba(220,241,255,.75);border-radius:23px;background:#112e4a;color:#fff;box-shadow:0 35px 100px rgba(6,23,46,.46);}
.tech-gallery-dialog::backdrop {background:rgba(7,20,41,.84);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);}
.tech-gallery-lightbox {display:grid;gap:11px;padding:16px;}
.tech-gallery-modal-top,.tech-gallery-modal-bottom {display:flex;align-items:center;justify-content:space-between;gap:15px;}
.tech-gallery-modal-top strong {font-size:16px;}
.tech-gallery-dialog button {appearance:none;border:1px solid rgba(255,255,255,.35);background:rgba(232,244,255,.12);color:#fff;border-radius:11px;min-width:45px;min-height:42px;font:inherit;font-weight:800;cursor:pointer;}
.tech-gallery-dialog button:disabled {opacity:.4;cursor:default;}
.tech-gallery-dialog button:focus-visible {outline:3px solid #9ee5ff;outline-offset:2px;}
.tech-gallery-photo-wrap {min-height:190px;display:grid;place-items:center;overflow:hidden;border-radius:14px;background:rgba(0,9,24,.54);}
.tech-gallery-photo-wrap img {display:block;max-width:100%;width:auto;height:auto;max-height:min(67dvh,620px);object-fit:contain;}
.tech-gallery-modal-bottom {text-align:center;}
.tech-gallery-modal-bottom p {margin:0;font-size:15px;line-height:1.8;color:#fff;overflow-wrap:anywhere;}
.tech-gallery-modal-bottom small {color:#bed6e6;font:700 13px Arial,sans-serif;}
body:has(.tech-gallery-dialog[open]) {overflow:hidden;}

/* Owner controls embedded in the existing price form. */
.tech-gallery-admin {display:block;grid-column:1/-1;width:100%;min-width:0;box-sizing:border-box;border:1px solid #c8ddea;background:linear-gradient(140deg,rgba(235,249,255,.94),rgba(253,241,249,.9));padding:19px;border-radius:19px;}
.tech-gallery-heading {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.tech-gallery-heading h3 {font-size:19px;color:#173e61;margin:0 0 4px;}
.tech-gallery-heading p {margin:0 0 10px;font-size:12px;color:#476681;line-height:1.95;max-width:68ch;}
.tech-gallery-counter {padding:6px 13px;border:1px solid #b9d6eb;background:#fff;color:#234f70;border-radius:99px;font-weight:850;font-size:12px;}
.tech-gallery-upload {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;font-size:13px!important;font-weight:800;color:#20577c;}
.tech-gallery-upload input[type="file"] {flex:1 1 210px;max-width:100%;box-sizing:border-box;border:1px dashed #94bcd9;border-radius:12px;background:#fff;color:#173f61;padding:9px 12px;}
.tech-gallery-help {font-size:12px;color:#37617c;margin:10px 0 13px;}
.tech-gallery-editor-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;}
.tech-gallery-edit-card {background:#fff;border:1px solid #bcd8e9;border-radius:15px;overflow:hidden;min-width:0;box-shadow:0 8px 20px rgba(32,88,124,.075);}
.tech-gallery-edit-card>img {width:100%;height:148px;object-fit:cover;display:block;}
.tech-gallery-edit-info {padding:11px;display:grid;gap:9px;}
.tech-gallery-edit-info>span {font-size:12px;font-weight:850;color:#245e85;}
.tech-gallery-edit-info>input {width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid #b3cee0;border-radius:10px;background:#f8fcff;color:#183d58;font:inherit;font-size:13px;}
.tech-gallery-edit-controls {display:flex;gap:5px;flex-wrap:wrap;}
.tech-gallery-edit-controls button {border:1px solid #b5d2e4;padding:7px 9px;font:800 11px Vazirmatn,Tahoma,sans-serif;border-radius:9px;background:#e9f5fd;color:#205779;cursor:pointer;}
.tech-gallery-edit-controls button.danger {background:#fff0f3;border-color:#f0b9c5;color:#b52a50;}
.tech-gallery-edit-controls button:disabled {opacity:.45;cursor:default;}
.tech-gallery-empty {grid-column:1/-1;background:rgba(255,255,255,.62);border:1px dashed #bdd3e1;border-radius:13px;padding:17px;color:#49647c;}
@media (max-width:680px){
 .tech-gallery-admin {padding:12px;}
 .tech-gallery-editor-grid {grid-template-columns:minmax(0,1fr);}
 .tech-gallery-dialog {max-width:calc(100vw - 14px);max-height:calc(100dvh - 26px);border-radius:16px;}
 .tech-gallery-lightbox {padding:10px;}
 .tech-gallery-photo-wrap img {max-height:60dvh;}
 .offer-grid .offer.has-cover {min-height:340px;}
}
/* Keep the spam trap available to the form without creating an enormous RTL scroll width. */
.tech-shell .honeypot {position:absolute!important;left:auto!important;right:0!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;clip:rect(0 0 0 0)!important;opacity:0!important;pointer-events:none!important;}
