/* =========================================================
   HAITIAN CORNER — EVENT "FOTO YO" DESKTOP
   ========================================================= */

.hc-foto-card{
  margin-top:18px;
  background:#fff;
  border:1px solid #e7ebf0;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 3px 14px rgba(0,0,0,.045);
}

.hc-foto-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  padding:16px 18px;
  cursor:pointer;
}

.hc-foto-card-title{
  display:flex;
  align-items:center;
  gap:9px;
  color:#003F87;
  font-size:17px;
  font-weight:900;
}

.hc-foto-card-count{
  color:#8a94a4;
  font-size:12px;
  font-weight:500;
}

.hc-foto-open{
  color:#003F87;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}

.hc-foto-empty{
  margin:0 16px 16px;
  padding:24px 18px;
  border-radius:13px;
  background:#f5f7f9;
  color:#8d929a;
  text-align:center;
  font-size:14px;
  line-height:1.45;
}

.hc-foto-preview{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:3px;
  margin:0 16px 16px;
  border-radius:12px;
  overflow:hidden;
}

.hc-foto-preview-item{
  position:relative;
  aspect-ratio:1;
  background:#e7eaee;
  overflow:hidden;
}

.hc-foto-preview-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.hc-foto-preview-more{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:22px;
  font-weight:900;
}

.hc-foto-owner-row{
  display:flex;
  gap:9px;
  padding:0 16px 16px;
}

.hc-foto-upload-btn{
  border:0;
  border-radius:10px;
  padding:10px 15px;
  background:#003F87;
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.hc-foto-upload-btn:hover{
  background:#002e65;
}


/* FULL GALLERY */
.hc-foto-modal{
  position:fixed;
  inset:0;
  z-index:10100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px;
  background:rgba(6,18,35,.75);
  backdrop-filter:blur(6px);
}

.hc-foto-dialog{
  width:min(1180px,100%);
  max-height:92vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#fff;
  border-radius:20px;
  box-shadow:0 30px 90px rgba(0,0,0,.34);
}

.hc-foto-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-bottom:1px solid #e8ebef;
}

.hc-foto-modal-title{
  color:#003F87;
  font-size:21px;
  font-weight:900;
}

.hc-foto-modal-sub{
  margin-top:2px;
  color:#8a94a4;
  font-size:11px;
}

.hc-foto-modal-actions{
  display:flex;
  align-items:center;
  gap:9px;
}

.hc-foto-modal-upload{
  border:0;
  border-radius:9px;
  padding:9px 14px;
  background:#003F87;
  color:#fff;
  font-family:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

.hc-foto-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#eef1f4;
  color:#4f5967;
  font-size:24px;
  cursor:pointer;
}

.hc-foto-gallery-body{
  overflow-y:auto;
  padding:18px;
}

.hc-foto-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
}

.hc-foto-tile{
  position:relative;
  aspect-ratio:1;
  overflow:hidden;
  border-radius:10px;
  background:#e7eaee;
  cursor:pointer;
}

.hc-foto-tile img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .18s ease;
}

.hc-foto-tile:hover img{
  transform:scale(1.025);
}

.hc-foto-stats{
  position:absolute;
  left:7px;
  bottom:7px;
  display:flex;
  gap:8px;
  padding:4px 7px;
  border-radius:8px;
  background:rgba(0,0,0,.52);
  color:#fff;
  font-size:10px;
}

.hc-foto-gallery-empty{
  min-height:310px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#8a94a4;
}

.hc-foto-gallery-empty .icon{
  margin-bottom:10px;
  font-size:42px;
}

.hc-foto-gallery-empty strong{
  color:#344054;
  font-size:17px;
}

.hc-foto-gallery-empty p{
  margin:5px 0 0;
  font-size:12px;
}

.hc-foto-upload-status{
  padding:10px 18px;
  background:#eef6ff;
  color:#003F87;
  border-bottom:1px solid #dcecff;
  font-size:12px;
  font-weight:700;
}


/* PHOTO VIEWER */
.hc-foto-viewer{
  position:fixed;
  inset:0;
  z-index:10200;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.94);
}

.hc-foto-viewer img{
  max-width:90vw;
  max-height:88vh;
  object-fit:contain;
}

.hc-foto-viewer-close{
  position:absolute;
  top:18px;
  right:20px;
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.14);
  color:#fff;
  font-size:27px;
  cursor:pointer;
}

.hc-foto-viewer-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:48px;
  height:48px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(0,0,0,.4);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}

.hc-foto-viewer-prev{left:18px}
.hc-foto-viewer-next{right:18px}


@media(max-width:850px){
  .hc-foto-grid{grid-template-columns:repeat(3,1fr)}
}

@media(max-width:620px){
  .hc-foto-modal{
    padding:0;
    align-items:flex-end;
  }

  .hc-foto-dialog{
    width:100%;
    max-height:92vh;
    border-radius:20px 20px 0 0;
  }

  .hc-foto-grid{
    grid-template-columns:repeat(3,1fr);
    gap:3px;
  }

  .hc-foto-gallery-body{
    padding:9px;
  }

  .hc-foto-preview{
    grid-template-columns:repeat(3,1fr);
  }

  .hc-foto-preview-item:nth-child(4){
    display:none;
  }

  .hc-foto-open{
    font-size:0;
  }

  .hc-foto-open:after{
    content:'View →';
    font-size:11px;
  }
}


/* =========================================================
   FOTO YO V2 — FULL SCREEN GALLERY PAGE
   ========================================================= */

.hc-foto-modal{
  position:fixed;
  inset:0;
  z-index:10100;

  display:block;

  padding:0;

  background:#f4f6f8;
  backdrop-filter:none;
}

.hc-foto-dialog{
  width:100%;
  height:100%;
  max-height:none;

  display:flex;
  flex-direction:column;

  overflow:hidden;

  background:#f4f6f8;

  border-radius:0;
  box-shadow:none;
}

.hc-foto-modal-head{
  position:sticky;
  top:0;
  z-index:5;

  min-height:68px;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;

  padding:12px 24px;

  background:#003F87;

  border-bottom:none;

  box-shadow:0 2px 8px rgba(0,0,0,.12);
}

.hc-foto-modal-title{
  color:#fff;
  font-size:20px;
  font-weight:900;
}

.hc-foto-modal-sub{
  color:rgba(255,255,255,.72);
  font-size:11px;
}

.hc-foto-modal-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.hc-foto-modal-upload{
  border:1px solid rgba(255,255,255,.35);

  background:rgba(255,255,255,.14);

  color:#fff;
}

.hc-foto-modal-upload:hover{
  background:rgba(255,255,255,.22);
}

.hc-foto-back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;

  border:0;

  background:transparent;

  color:#fff;

  font-family:inherit;
  font-size:13px;
  font-weight:800;

  cursor:pointer;

  padding:8px 4px;
}

.hc-foto-back i{
  font-size:14px;
}

.hc-foto-close{
  display:none;
}

.hc-foto-gallery-body{
  width:min(1240px,100%);

  margin:0 auto;

  flex:1;

  overflow-y:auto;

  padding:26px 28px 50px;
}

.hc-foto-grid{
  grid-template-columns:repeat(4,1fr);

  gap:10px;
}

.hc-foto-tile{
  border-radius:12px;

  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

.hc-foto-upload-status{
  flex:0 0 auto;

  text-align:center;
}


/* TABLET */
@media(max-width:900px){

  .hc-foto-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .hc-foto-gallery-body{
    padding:20px;
  }
}


/* MOBILE */
@media(max-width:620px){

  .hc-foto-modal{
    align-items:initial;
  }

  .hc-foto-dialog{
    width:100%;
    height:100%;
    max-height:none;

    border-radius:0;
  }

  .hc-foto-modal-head{
    padding:
      calc(10px + env(safe-area-inset-top))
      14px
      10px;

    min-height:64px;
  }

  .hc-foto-modal-title{
    font-size:18px;
  }

  .hc-foto-modal-sub{
    font-size:10px;
  }

  .hc-foto-gallery-body{
    padding:8px 8px 30px;
  }

  .hc-foto-grid{
    grid-template-columns:repeat(3,1fr);

    gap:3px;
  }

  .hc-foto-tile{
    border-radius:4px;
  }

  .hc-foto-modal-upload{
    padding:8px 10px;

    font-size:0;
  }

  .hc-foto-modal-upload i{
    font-size:15px;
  }
}


/* =========================================================
   FOTO YO — DELETE BUTTON
   ========================================================= */

.hc-foto-delete-btn{
  position:absolute;
  top:8px;
  right:8px;
  z-index:3;

  width:34px;
  height:34px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.45);
  border-radius:50%;

  background:rgba(15,18,23,.68);
  color:#fff;

  font-size:12px;

  cursor:pointer;

  backdrop-filter:blur(5px);

  transition:
    background .15s ease,
    transform .15s ease;
}

.hc-foto-delete-btn:hover{
  background:#D4181C;
  transform:scale(1.06);
}

@media(max-width:620px){

  .hc-foto-delete-btn{
    top:5px;
    right:5px;

    width:30px;
    height:30px;

    font-size:11px;
  }
}
