*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins';
}


*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
  margin-top: 4rem;
	min-height: 100vh;
  background-color: #f7faec;
}

a{
  text-decoration: none;
  color: white;
  padding: 0;
}


img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  border-radius: 20px;
}

.top-nav{
  margin-top: 6.5rem;
}

/* top nav */
.wrapper {
  /* max-width: 1100px; */
  padding: 20px 10px;
  margin: 0 40px 0px;
  overflow: hidden;
}

.g-card{
  color: white;
  height: 100%;
  font-weight: 500;
  text-align: center;
  border-radius: 5px;
  background-color: rgb(200, 198, 177);
   border-radius: 7px;
}

.g-card:hover{
  background-color: #057892;
  transition: all ease-in 200ms;
}

.g-card div{
   text-align: center;
   display: flex;
   align-items: center;
   justify-content: center;
  padding: 1rem;
  height: 8.6rem;
}


.container {
	max-width: 100rem;
	margin: 0 auto;
	padding: 0 2rem 2rem;
}

.gallery-container{
  padding-inline: 1.5rem;
  padding-bottom: 3rem;
  border-radius: 7px;
}

.heading {
	font-family: "Montserrat", Arial, sans-serif;
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	padding: 0rem 2rem 2rem 3rem;
}

.heading span {
	display: block;
  color: #057892;
}

.gallery {
	display: flex;
	flex-wrap: wrap;
	margin: -1rem -1rem;
   border-radius: 7px;
}

.gallery-item {
	flex: 1 0 24rem;
	margin: 1rem;
	box-shadow: 0.3rem 0.4rem 0.4rem rgba(0, 0, 0, 0.4);
	overflow: hidden;
}

.gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	/* object-fit: contain; */
	transition: transform 400ms ease-out;
   border-radius: 10px;
}

.gallery-image:hover {
	transform: scale(1.15);
}

.back-button {
  padding: 10px 20px;
  margin-top: 1rem;
  font-size: 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--primary-color-hover);
}

@supports (display: grid) {
	.gallery {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(15rem, 240px));
		grid-gap: 2rem;
		place-content:center;
	}

	.gallery,
	.gallery-item {
		margin: 0;
	}
}

@media (max-width: 480px){
    .gallery{
        grid-template-columns: repeat(auto-fit, minmax(15rem, 340px))
    }
    
    .g-card div{
        height: 4.4rem;
        font-size: 1.4rem;
    }
}


.wrapper :where(.swiper-button-prev, .swiper-button-next) {
  color: #51adf9;
  position: absolute;
  margin-top: -35px;
  transition: all 0.3s ease;
}

.swiper-button-next:after, 
.swiper-button-prev:after{
  font-size: 2.4rem !important;
  color: #057892;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(48, 162, 249, 0.2);
  border-radius: 20%;
  transform: scale(1.1); 
  transition: all 0.3s ease;
}


/* .wrapper :where(.swiper-button-next){
  right: 0%;
}
.wrapper :where(.swiper-button-prev){
  left: 0%;
} */

.wrapper :where(.swiper-button-prev, .swiper-button-next):hover {
  color: #090a0a;
}

/* Responsive media query code for small screens */
@media (max-width: 768px) {
  .g-card{
    font-size: 0.8rem;
  }

  .heading{
    padding: 1rem;
  }

  .wrapper :where(.swiper-button-prev, .swiper-button-next) {
    display: none;
  }
}


@media screen and (max-width: 780px) {
    .top:before{
        height: 20vh;
    }
}


/* Modal for image css */
/* The Modal (background) */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 100px; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: rgb(0,0,0); 
  background-color: rgba(0,0,0,0.9); 
}

#modalimg{
  object-fit: contain;
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  height: 85%;
  width: 85%;
  max-width: 700px;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0.1)} 
  to {transform: scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: red;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 90%;
    height: 75%;
  }
}


/* added for nav on model */
.modal-prev, .modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  color: white;
  font-size: 40px;
  user-select: none;
  z-index: 1001;
  transition: 0.3s;
}

.modal-prev {
  left: 40px;
}

.modal-next {
  right: 40px;
}

.modal-prev:hover, .modal-next:hover {
  color: #ccc;
}

