/* PAGE BANNER */
.page-banner {
  position: relative;
  height: 340px;
  background: url('../images/hero.jpg') no-repeat center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.banner-content {
  position: relative;
  color: white;
}

.banner-content h1 {
  font-size: 52px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #F4B400;
}

.banner-content p {
  font-size: 18px;
  color: #eee;
}

/* ACTIVE NAV LINK */
.nav-links a.active {
  color: #ff6b35;
  border-bottom: 2px solid #ff6b35;
  padding-bottom: 3px;
}

/* PROFILES SECTION */
.profiles-section {
  padding: 80px 80px 60px;
  background: #f9f9f9;
}

.profiles-heading {
  text-align: center;
  margin-bottom: 50px;
}

.profiles-heading h2 {
  font-size: 36px;
  color: #1d3557;
  margin-bottom: 10px;
}

.profiles-heading p {
  font-size: 16px;
  color: #777;
}

/* CHILDREN GRID */
.children-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 50px;
}

/* CHILD CARD */
.child-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.child-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
}

/* PHOTO */
.child-photo-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.child-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.child-card:hover .child-photo-wrap img {
  transform: scale(1.05);
}

/* GRADE BADGE */
.grade-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F4B400;
  color: rgb(0, 0, 0);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* CARD BODY */
.child-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.child-name {
  font-size: 17px;
  font-weight: 600;
  color: #1d3557;
  margin: 0 0 4px;
}

.child-age {
  font-size: 13px;
  color: #ff6b35;
  margin: 0 0 10px;
  font-weight: 500;
}

.child-bio {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3; /* Future standard */
}

/* PERFORMANCE BUTTON */
.perf-btn {
  margin-top: 16px;
  background: #1d3557;
  color: white;
  border: none;
  padding: 10px 0;
  border-radius: 25px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.perf-btn:hover {
  background: #F4B400;
  transform: translateY(-2px);
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: white;
  color: #444;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
}

.page-btn:hover {
  border-color: #F4B400;
  color: #F4B400;
}

.page-btn.active {
  background: #F4B400;
  border-color: #F4B400;
  color: white;
  font-weight: 600;
}

.page-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: white;
  color: #444;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s;
}

.page-arrow:hover:not(:disabled) {
  border-color: #F4B400;
  color: #F4B400;
}

.page-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* MODAL BOX */
.modal-box {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  display: flex;
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  transform: translateY(30px);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f0f0f0;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  color: #333;
  z-index: 10;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #F4B400;
  color: white;
}

/* MODAL LEFT PANEL */
.modal-left {
  width: 240px;
  background: #1d3557;
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
}

.modal-left img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #F4B400;
  margin-bottom: 14px;
}

.modal-left h3 {
  color: white;
  font-size: 18px;
  margin: 0 0 8px;
}

.modal-age,
.modal-grade {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 3px;
}

.modal-age {
  background: rgba(255,107,53,0.2);
  color: #F4B400;
}

.modal-grade {
  background: rgba(255,255,255,0.1);
  color: #ccc;
}

.modal-bio {
  font-size: 12px;
  color: #aaa;
  line-height: 1.7;
  margin-top: 14px;
}

/* MODAL RIGHT PANEL */
.modal-right {
  flex: 1;
  padding: 32px 30px;
  overflow-y: auto;
}

/* PERFORMANCE HEADER */
.perf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.perf-header h3 {
  font-size: 20px;
  color: #1d3557;
  margin: 0;
}

.perf-header p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #777;
}

.overall-grade {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* SECTION TITLE */
.perf-section-title {
  font-size: 13px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.perf-section-title i {
  color: #F4B400;
}

/* RESULT + ACHIEVEMENTS LAYOUT */
.result-and-ach {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* RESULT IMAGE SIDE */
.result-image-wrap {
  flex: 0 0 190px;
}

.result-img-label {
  font-size: 13px;
  font-weight: 600;
  color: #1d3557;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.result-img-label i {
  color: #F4B400;
}

/* IMAGE FRAME */
.result-img-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #eee;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.result-img-frame:hover {
  border-color: #F4B400;
  box-shadow: 0 6px 20px rgba(255,107,53,0.2);
}

.result-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.result-img-frame:hover .result-img {
  transform: scale(1.04);
}

/* ZOOM HINT */
.result-img-hover {
  position: absolute;
  inset: 0;
  background: rgba(29, 53, 87, 0.75);
  color: white;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s;
}

.result-img-hover i {
  font-size: 22px;
  color: #F4B400;
}

.result-img-frame:hover .result-img-hover {
  opacity: 1;
}

/* ACHIEVEMENTS SIDE */
.result-ach-wrap {
  flex: 1;
  min-width: 0;
}

.ach-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}

.ach-list::-webkit-scrollbar {
  width: 4px;
}

.ach-list::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 4px;
}

.ach-list::-webkit-scrollbar-thumb {
  background: #F4B400;
  border-radius: 4px;
}

.ach-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff8f5;
  border-left: 3px solid #F4B400;
  padding: 9px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12px;
  color: #444;
  line-height: 1.6;
  transition: background 0.2s;
}

.ach-item:hover {
  background: #ffeee6;
}

.ach-item i {
  color: #F4B400;
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 11px;
}

/* LIGHTBOX */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
}

#lightbox.lb-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

#lbOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#lbImg {
  max-width: 88vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  object-fit: contain;
}

#lbCaption {
  margin-top: 14px;
  color: #bbb;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

#lbClose {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

#lbClose:hover {
  background: #F4B400;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .children-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .profiles-section {
    padding: 60px 20px;
  }
  .children-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-box {
    flex-direction: column;
    overflow: visible;
    max-height: none;
  }
  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
  }
  .modal-left {
    width: 100%;
    padding: 24px 20px;
    flex-shrink: 0;
  }
  .modal-right {
    overflow-y: visible;
    padding: 24px 20px;
    width: 100%;
  }
  .result-and-ach {
    flex-direction: column;
  }
  .result-image-wrap {
    flex: none;
    width: 100%;
  }
  .result-img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .children-grid {
    grid-template-columns: 1fr;
  }
  .banner-content h1 {
    font-size: 36px;
  }
}

/* MODAL BOX — now 3 columns */
.modal-box {
  max-width: 1100px !important;
}

/* GALLERY PANEL — mirrors the left blue panel */
.modal-gallery {
  width: 220px;
  background: #1d3557;
  padding: 36px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.gallery-label {
  font-size: 12px;
  font-weight: 600;
  color: #F4B400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* GALLERY FRAME */
.gallery-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid #F4B400;
  transition: opacity 0.5s ease;
}

.gallery-img.fade {
  opacity: 0;
}

/* DOTS */
.gallery-dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.3s;
  cursor: default;
}

.gallery-dot.active {
  background: #F4B400;
}

/* RESPONSIVE — gallery panel: full-width block below content on mobile */
@media (max-width: 900px) {
  .modal-box {
    max-width: 820px !important;
    flex-direction: column;
    overflow: visible;
    max-height: none;
  }

  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 16px;
  }

  .modal-right {
    overflow-y: visible;
    padding: 24px 20px;
    width: 100%;
  }

  .modal-gallery {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 24px 20px 30px;
    flex-shrink: 0;
  }

  .gallery-frame {
    width: 100%;
    max-width: 420px;
  }

  .gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
  }

  .gallery-label {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .gallery-dots {
    margin-top: 4px;
  }
}

/* =========================================
   GLOBAL MOBILE RESPONSIVE SYSTEM
========================================= */

@media(max-width:900px){

  html,
  body{
    overflow-x:hidden;
  }

  /* SECTION SPACING */
  section,
  .section,
  .page-section{
    padding-left:24px !important;
    padding-right:24px !important;
  }

  /* HERO SECTIONS */
  .hero,
  .page-banner,
  .about-hero,
  .children-hero,
  .csr-hero,
  .ach-hero,
  .contact-hero,
  .donate-hero{
    min-height:auto !important;
    padding:140px 24px 80px !important;
    text-align:center;
  }

  .hero h1,
  .page-banner h1,
  .about-hero h1,
  .children-hero h1,
  .csr-hero h1,
  .ach-hero h1,
  .contact-hero h1,
  .donate-hero h1{
    font-size:clamp(2.3rem,9vw,4rem) !important;
    line-height:1 !important;
  }

  .hero p,
  .page-banner p{
    font-size:.95rem !important;
    line-height:1.8 !important;
  }

  /* NAVBAR */
  .navbar{
    padding:18px 24px !important;
    flex-wrap:wrap !important;
    gap:18px !important;
  }

  .logo-container{
    width:100% !important;
    justify-content:center !important;
  }

  .logo-container span{
    font-size:1rem !important;
  }

  .nav-links{
    width:100% !important;
    overflow-x:auto !important;
    gap:18px !important;
    justify-content:flex-start !important;
    padding-bottom:8px !important;
    scrollbar-width:none;
  }

  .nav-links::-webkit-scrollbar{
    display:none;
  }

  .nav-links a{
    white-space:nowrap;
    font-size:.9rem !important;
  }

  .donate-container{
    width:100%;
  }

  .donate-btn{
    width:100%;
    text-align:center;
  }

  /* ALL GRIDS */
  .tiles-grid,
  .children-grid,
  .ach-grid,
  .csr-grid,
  .projects-grid,
  .footer-container,
  .contact-container,
  .vol-grid,
  .other-projects-grid,
  .detail-four-tiles,
  .detail-three-cta,
  .vol-what-grid,
  .team-grid,
  .donate-grid,
  .impact,
  .stats-grid{
    grid-template-columns:1fr !important;
  }

  /* COMMON CARDS */
  .tile,
  .child-card,
  .ach-card,
  .project-card,
  .vol-tile,
  .contact-card,
  .detail-tile,
  .donate-card,
  .stat-card{
    padding:24px !important;
    border-radius:24px !important;
  }

  /* INTRO / FLEX SECTIONS */
  .intro,
  .about-intro,
  .founder-intro,
  .mission-section,
  .contact-wrap{
    flex-direction:column !important;
    gap:40px !important;
  }

  .intro-content,
  .intro-slider,
  .founder-photo,
  .founder-story,
  .mission-left,
  .mission-right{
    width:100% !important;
  }

  /* FORMS */
  .form-row,
  .vf-row{
    flex-direction:column !important;
  }

  .vf-group,
  .form-group{
    width:100% !important;
  }

  /* FILTER TABS */
  .vol-filter-tabs,
  .filter-tabs{
    overflow-x:auto;
    justify-content:flex-start;
    gap:10px;
    padding-bottom:10px;
    scrollbar-width:none;
  }

  .vol-filter-tabs::-webkit-scrollbar,
  .filter-tabs::-webkit-scrollbar{
    display:none;
  }

  .filter-tab{
    white-space:nowrap;
  }

  /* DETAIL PAGE */
  .detail-title-overlay{
    padding:24px !important;
  }

  .detail-title-overlay h1{
    font-size:2rem !important;
  }

  .detail-img-viewer{
    height:70vh !important;
  }

  /* FOOTER */
  .footer{
    padding:70px 24px 30px !important;
  }

  .footer-container{
    gap:40px !important;
  }

  .footer-section{
    text-align:center !important;
  }

  .social-icons{
    justify-content:center !important;
  }

  .footer-bottom{
    text-align:center !important;
    flex-direction:column !important;
    gap:10px !important;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media(max-width:600px){

  .hero,
  .page-banner{
    padding:120px 18px 70px !important;
  }

  .hero h1,
  .page-banner h1{
    font-size:2rem !important;
  }

  .hero p,
  .page-banner p{
    font-size:.88rem !important;
  }

  .buttons,
  .banner-buttons,
  .cta-buttons{
    flex-direction:column !important;
    width:100% !important;
    gap:12px !important;
  }

  .btn,
  .banner-btn,
  .cta-btn{
    width:100% !important;
    justify-content:center !important;
  }

  section,
  .section{
    padding-left:18px !important;
    padding-right:18px !important;
  }

  .intro-content h2,
  .section-title{
    font-size:1.8rem !important;
  }

  .impact .stat h2{
    font-size:2rem !important;
  }

  .detail-title-overlay h1{
    font-size:1.7rem !important;
  }

  .detail-img-arrow{
    width:42px !important;
    height:42px !important;
  }

}

/* MOBILE NAV OVERLAY */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.mobile-overlay.open {
  transform: translateX(0);
}

.mobile-overlay a {
  font-size: 1.6rem;
  color: #fff;
  text-decoration: none;
}

.mob-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
}

.burger {
  display: none; /* only show on mobile */
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  width: 28px;
  height: 3px;
  background: #fff;
  display: block;
  border-radius: 2px;
}

/* SHOW BURGER ON SMALL SCREENS */
@media(max-width:900px){
  .burger { display: flex; }
  .nav-links, .nav-pill { display: none; }

  @media(max-width:900px){

  .navbar{
    width:100%;
    padding:14px 14px;

    display:flex;
    align-items:center;

    position:relative;
    overflow:hidden;
  }

  /* LOGO SIDE */
  .logo-container{
    display:flex;
    align-items:center;
    gap:8px;

    flex:1;
    min-width:0;
  }

  .logo-container img{
    height:38px;
    width:auto;
    flex-shrink:0;
  }

  .logo-container span{
    font-size:.82rem;
    font-weight:700;

    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;

    max-width:140px;
  }

  /* HIDE DESKTOP LINKS */
  .nav-links{
    display:none !important;
  }

  /* DONATE BUTTON */
  .donate-container{
    margin-left:auto;
    margin-right:46px;

    flex-shrink:0;
  }

  .donate-btn{
    padding:8px 14px;
    font-size:.78rem;

    border-radius:40px;

    white-space:nowrap;
  }

  /* BURGER */
  .burger{
    display:flex;
    flex-direction:column;
    gap:4px;

    position:absolute;
    right:14px;
    top:50%;

    transform:translateY(-50%);

    background:none;
    border:none;

    cursor:pointer;
    z-index:9999;

    flex-shrink:0;
  }

  .burger span{
    width:22px;
    height:2.5px;

    border-radius:10px;
    background:#fff;
  }

}
}

/* FIX MOBILE NAVBAR */

@media(max-width:900px){

  html,
  body{
    overflow-x:hidden;
    width:100%;
  }

  .navbar{
    width:100%;
    padding:16px 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:relative;
    overflow:hidden;
  }

  /* LOGO */
  .logo-container{
    display:flex;
    align-items:center;
    gap:10px;
    width:auto;
    flex:1;
  }

  .logo-container img{
    height:42px;
    width:auto;
  }

  .logo-container span{
    font-size:1rem;
    white-space:nowrap;
  }

  /* HIDE DESKTOP LINKS */
  .nav-links{
    display:none !important;
  }

  /* DONATE BUTTON */
  .donate-container{
    width:auto;
    margin-right:55px; /* leaves space for burger */
  }

  .donate-btn{
    padding:12px 22px;
    font-size:.95rem;
    border-radius:40px;
    white-space:nowrap;
  }

  /* BURGER ICON */
  .burger{
    display:flex;
    flex-direction:column;
    gap:5px;

    position:absolute;
    right:18px;   /* MOVED TO RIGHT */
    top:50%;
    transform:translateY(-50%);

    background:none;
    border:none;
    cursor:pointer;
    z-index:9999;
  }

  .burger span{
    width:26px;
    height:3px;
    border-radius:10px;
    background:#fff;
  }

  /* MOBILE MENU */
  .mobile-overlay{
    position:fixed;
    inset:0;
    background:#000;
    z-index:99999;

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:28px;

    transform:translateX(100%);
    transition:.35s ease;
  }

  .mobile-overlay.open{
    transform:translateX(0);
  }

  .mobile-overlay a{
    color:#fff;
    text-decoration:none;
    font-size:1.5rem;
    font-weight:600;
  }

  .mob-close{
    position:absolute;
    top:24px;
    right:24px;

    background:none;
    border:none;

    color:#fff;
    font-size:2rem;
    cursor:pointer;
  }

}

@media (max-width:900px){

    .modal-box{
        width:100%;
        max-width:100%;
        margin:0;
        flex-direction:column;
        overflow:hidden;
    }

    .modal-left,
    .modal-right,
    .modal-gallery{
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
    }

    .result-and-ach{
        display:flex;
        flex-direction:column;
        gap:18px;
        width:100%;
    }

    .result-image-wrap{
        flex:none;
        width:100%;
        max-width:100%;
    }

    .result-img-frame{
        width:100%;
    }

    .result-img{
        width:100%;
        height:auto;
        max-height:420px;
        object-fit:contain;
    }

    .result-ach-wrap{
        width:100%;
        min-width:0;
    }

    .gallery-frame{
        width:100%;
        max-width:100%;
    }

    .gallery-img{
        width:100%;
        height:auto;
        max-height:260px;
        object-fit:cover;
    }

}