/* tablet */
@media (max-width: 992px) {
  /* navbar */
  .custom-navbar {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important;
    padding: 18px 0;
    z-index: 9999;
    transition: 0.4s;
  }

  .custom-navbar.scrolled {
    transform: translateY(-120%);
  }

  /* toggle */
  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(174, 174, 174, 0.464);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-toggler i {
    color: #fff;
  }

  /* mobile-menu */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 20, 45, 0.98);
    backdrop-filter: blur(18px);
    padding: 110px 30px 40px;
    z-index: 9998;
    overflow-y: auto;
  }

  .mobile-menu-logo {
    position: absolute;
    top: 22px;
    left: 30px;
  }

  .mobile-menu-logo img {
    width: 70px;
  }

  .navbar-nav {
    gap: 18px;
    align-items: flex-start !important;
  }

  .nav-link {
    color: #fff !important;
    font-size: 18px;
    font-weight: 600;
    padding: 10px 0;
  }

  .navbar-collapse .main-btn {
    width: 100%;
    margin-top: 25px;
    border-radius: 14px;
    text-align: center;
  }

  /* start-hero */
  .hero-content {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-content h1 {
    font-size: 50px;
  }

  .section-title h2 {
    font-size: 38px;
  }

  /* gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card.big {
    grid-column: span 2;
  }

  /* map */
  .contact .col-md-6 {
    width: 50%;
  }

  .contact .col-lg-4 {
    width: 33.3333%;
  }

  /* hide arrow */
  .carousel-control-prev,
  .carousel-control-next {
    display: none !important;
  }

  /* modal */
  .modal {
    z-index: 999999 !important;
  }

  .modal-dialog {
    z-index: 999999 !important;
  }

  .custom-contact-modal {
    z-index: 999999 !important;
    position: relative;
  }

  .modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    z-index: 9999999 !important;
  }

  .navbar-toggler {
    z-index: 1 !important;
  }
}

/* mobile */
@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .testimonial-card {
    padding: 35px 25px;
  }

  /* map */
  .contact .col-md-6,
  .contact .col-lg-4 {
    width: 100%;
  }

  /* footer */
  .footer {
    text-align: left;
  }

  .footer-brand p {
    margin: 0;
  }

  .footer-socials {
    justify-content: flex-start;
  }

  .footer-bottom {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-contact li {
    justify-content: flex-start;
  }
}

/* small mobile */
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 34px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  /* gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-card.big {
    grid-column: span 1;
  }
}

/* real Gallery */

/* =========================================================
TABLET
========================================================= */

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .gallery-card.big,
  .gallery-card.tall,
  .gallery-card.wide {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .gallery-overlay h4 {
    font-size: 20px;
  }
}

/* =========================================================
MOBILE
========================================================= */

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
    gap: 18px;
  }

  .gallery-card.big,
  .gallery-card.tall,
  .gallery-card.wide,
  .gallery-card.small {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  .gallery-card {
    border-radius: 22px;
  }

  .gallery-overlay {
    padding: 20px;
  }

  .gallery-overlay h4 {
    font-size: 18px;
    line-height: 1.4;
  }
}

/* =========================================================
SMALL MOBILE
========================================================= */

@media (max-width: 576px) {
  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .gallery-overlay h4 {
    font-size: 16px;
  }
}
