/******************************************************************/

.modal {
  z-index: 99999;
  top: 20%;
}

.modal-content {
  background-size: contain;
  background-repeat: no-repeat;
}

.service-item {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f5f5f500, #e0e0e000);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease,
    border-color 0.3s ease;
  border: 2px solid transparent;
}

/* .service-item:hover {
  transform: scale(1.05);

  width: 21%;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.service-item:hover i {
  transform: rotate(20deg);
} */
.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-item:hover::before {
  opacity: 1;
}

.service-item i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.service-item:hover i {
  transform: rotate(20deg);
}

/* For screens up to 600px */
@media (max-width: 600px) {
  .container-language {
    margin-left: -6%;
    background-color: red;
  }
  /* .padding-top-100{
    margin-top: 100px;
  } */
  .service-item i {
    font-size: 12px;
    /* Adjust icon size for small screens */
    height: 2em;
  }

  .service-item h4 {
    font-size: 14px;
    /* Adjust text size if needed */
  }
}

:root {
  --brand-color: hsl(46, 100%, 50%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  --font-heading: "Montserrat", sans-serif;
  --font-text: "Lato", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.info-card__heading,
.info-card__text-content {
  margin: 0;
}

.page-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0rem;
}

/* Media query for small screens (up to 600px) */
@media (max-width: 600px) {
  .page-wrapper {
    flex-direction: column;
    padding: 0rem;
    height: auto;
  }
}

/* Media query for medium screens (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .page-wrapper {
    padding: 0rem;
    height: auto;
  }
}

/* Media query for large screens (1025px and above) */
@media (min-width: 1025px) {
  .page-wrapper {
    padding: 0rem;
    height: 100%;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 70rem;
  padding-top: 40px;
  margin: 0 auto;
  margin-bottom: 34px;
  
}

.info-card {
  display: grid;
  place-items: center;
  flex: 1 1 calc(25% - 1rem);
  max-width: 15rem;
  height: 20rem;
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
  transition: transform 500ms ease-in;
  background-color: #000;
}

.info-card > * {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.info-card__image {
  object-fit: cover;
  max-width: 100%;
  height: 100%;
}

.info-card__details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-end;
  height: 100%; /* Increased from 50% to 60% */
  padding: 15% 1rem 1.5rem; /* Adjusted padding for better spacing */
  background: linear-gradient(
    180deg,
    hsla(0, 0%, 0%, 0) 0%,
    hsla(0, 0%, 0%, 0.3) 10%,
    hsl(0, 0%, 0%) 100%
  );
}

.info-card__details-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 100%;
  height: 50%;
  
}

/* Media query for small screens (up to 600px) */
@media (max-width: 600px) {
  .info-card__details-inner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    height: 50%;
    padding: 15% 1rem 1.5rem; /* Adjusted padding for better spacing  '15% 1rem 1.5rem;' */
  }
  .info-card__details {
    transform: translateY(60%);
    transition: transform 500ms ease-out;
    transition-delay: 500ms;
    font-size: 10px;
  }
  .card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    max-width: 15rem;
    padding-top: 40px;
    margin: 0 auto;
  }

  .info-card__heading::after {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 1000ms ease-in, transform 500ms ease-out;
    transition-delay: 500ms;
    transform-origin: right;
  }

  .info-card__image {
    transition: transform 500ms ease-in;
  }

  .info-card__details-inner > :not(.info-card__heading),
  .info-card__action-button {
    opacity: 0;
    transition: transform 500ms ease-out, opacity 500ms ease-out;
  }

  .info-card:hover,
  .info-card:focus-within,
  .info-card:active {
    transform: scale(1.05);
    transition: transform 500ms ease-in;
  }

  .info-card:hover .info-card__details,
  .info-card:focus-within .info-card__details,
  .info-card:active .info-card__details {
    transform: translateY(0);
    transition: transform 500ms ease-in;
  }

  .info-card:focus-within .info-card__details {
    transition-duration: 0ms;
  }

  .info-card:hover .info-card__image,
  .info-card:focus-within .info-card__image,
  .info-card:active .info-card__image {
    transform: scale(1.2);
  }

  .info-card:hover .info-card__details-inner > :not(.info-card__heading),
  .info-card:hover .info-card__action-button,
  .info-card:focus-within .info-card__details-inner > :not(.info-card__heading),
  .info-card:focus-within .info-card__action-button,
  .info-card:active .info-card__details-inner > :not(.info-card__heading),
  .info-card:active .info-card__action-button {
    opacity: 1;
    transition: opacity 500ms ease-in;
    transition-delay: 1000ms;
  }

  .info-card:hover .info-card__heading::after,
  .info-card:focus-within .info-card__heading::after,
  .info-card:active .info-card__heading::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
    transition: opacity 500ms ease-in, transform 500ms ease-in;
    transition-delay: 500ms;
  }
}

/* Media query for medium screens (601px to 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .info-card__details-inner {
    gap: 0.4rem; /* Adjust gap for medium screens */
    min-height: 80%; /* Adjust min-height for medium screens */
  }
}
.info-card__details-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-end;
  height: 50%;
  padding: 20% 0rem 2.5rem; /* Adjusted padding for better spacing  '15% 1rem 1.5rem;' */
}
/* Media query for large screens (1025px and above) */
@media (min-width: 1025px) {
  .info-card__details-inner {
    gap: 0.5rem; /* Default gap for large screens */
    min-height: 100%; /* Default min-height for large screens */
  }
  
}

.info-card__heading {
  font-size: 1.25rem;
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.1;
  position: relative;
  width: fit-content;
  font-family: 'Times New Roman', Times, serif;
}

.info-card__heading::after {
  content: "";
  position: absolute;
  height: 0.25rem;
  width: 100%;
  bottom: -0.5rem;
  left: 0;
  background-color: var(--brand-color);
}

.info-card__text-content {
  font-family: var(--font-text);
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--white);
  text-align: left;
  font-family: 'Times New Roman', Times, serif;
}

.info-card__action-button {
  padding: 0.5em 1.2em;
  font-variant: small-caps;
  font-weight: bold;
  border-radius: 0.45em;
  border: none;
  background-color: var(--brand-color);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: var(--black);
  margin-top: -30px;
}

.info-card__action-button:focus {
  outline: 2px solid black;
  outline-offset: -5px;
}

/* Hover and active states */
@media (any-hover: hover) and (any-pointer: fine) {
  .info-card__details {
    transform: translateY(60%);
    transition: transform 500ms ease-out;
    transition-delay: 500ms;
  }

  .info-card__heading::after {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 1000ms ease-in, transform 500ms ease-out;
    transition-delay: 500ms;
    transform-origin: right;
  }

  .info-card__image {
    transition: transform 500ms ease-in;
  }

  .info-card__details-inner > :not(.info-card__heading),
  .info-card__action-button {
    opacity: 0;
    transition: transform 500ms ease-out, opacity 500ms ease-out;
  }

  .info-card:hover,
  .info-card:focus-within,
  .info-card:active {
    transform: scale(1.05);
    transition: transform 500ms ease-in;
  }

  .info-card:hover .info-card__details,
  .info-card:focus-within .info-card__details,
  .info-card:active .info-card__details {
    transform: translateY(0);
    transition: transform 500ms ease-in;
  }

  .info-card:focus-within .info-card__details {
    transition-duration: 0ms;
  }

  .info-card:hover .info-card__image,
  .info-card:focus-within .info-card__image,
  .info-card:active .info-card__image {
    transform: scale(1.2);
  }

  .info-card:hover .info-card__details-inner > :not(.info-card__heading),
  .info-card:hover .info-card__action-button,
  .info-card:focus-within .info-card__details-inner > :not(.info-card__heading),
  .info-card:focus-within .info-card__action-button,
  .info-card:active .info-card__details-inner > :not(.info-card__heading),
  .info-card:active .info-card__action-button {
    opacity: 1;
    transition: opacity 500ms ease-in;
    transition-delay: 1000ms;
  }

  .info-card:hover .info-card__heading::after,
  .info-card:focus-within .info-card__heading::after,
  .info-card:active .info-card__heading::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
    transition: opacity 500ms ease-in, transform 500ms ease-in;
    transition-delay: 500ms;
  }
}

/* @media (max-width: 1024px) {
  .info-card {
    flex: 1 1 calc(50% - 1rem);
    max-width: 100%;
  }
} */

@media (max-width: 768px) {
  .info-card {
    flex: 1 1 calc(50% - 1rem);
    max-width: 100%;
  }

  .info-card__details {
    padding: 6% 0.75rem 1rem;
  }

  .info-card__heading {
    font-size: 1rem;
  }

  .info-card__text-content {
    font-size: 0.75rem;
  }

  .info-card__action-button {
    font-size: 0.75rem;
  }
  #top {
    display: flex;
    flex-wrap: wrap;
    width: 99vw;
    margin: 10vh auto;

}
}

@media (max-width: 480px) {
  .info-card {
    flex: 1 1 calc(100% - 1rem);
  }

  .info-card__heading {
    font-size: 1rem;
  }

  .info-card__text-content {
    font-size: 0.8rem;
  }

  .info-card__action-button {
    font-size: 0.65rem;
    padding: 0.4em 1em;
  }
}

/* General styles for the crematorium container */
.crematorium-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 5%;
  justify-content: center;
}

/* Card styles */
.card {
  position: relative;
  width: 300px;
  /* Adjust width as needed */
  height: 193px;
  border-radius: 12px;
  /* Rounded corners for a softer look */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  /* Enhanced shadow for depth */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
  /* Border for hover effect */
  background: #fff;
  /* White background for the card */
  display: flex;
  flex-direction: column;
  /* Align content vertically */
  justify-content: flex-end;
  /* Push content to the bottom */
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  border-color: #deb823;
  /* Border color on hover */
}

/* Decorative border */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #deb823;
  /* Decorative border */
  z-index: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.card:hover::before {
  opacity: 0;
  /* Hide the border on hover to focus on the card content */
}

.card img {
  width: 100%;
  height: 150px;
  /* Fixed height for uniform image size */
  object-fit: cover;
  /* Maintain aspect ratio and cover the card */
  display: block;
  transition: opacity 0.3s ease;
}

/* Content below the image */
.card-content {
  padding: 10px;
  text-align: center;
  background-color: #f5f5f5;
  /* Light background for content area */
}

.card-content h2 {
  font-size: 18px;
  /* Adjust font size as needed */
  margin: 0;
  color: #deb823;
  /* Text color */
}

/* Overlay styles */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  /* Black overlay with a bit of transparency */
  color: #deb823;
  /* Text color */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  border-radius: 12px;
  /* Match card corners */
  z-index: 1;
}

.card:hover .card-overlay {
  opacity: 1;
}

/* Overlay content styling */
.overlay-content h2 {
  font-size: 20px;
  /* Adjust font size for headings in overlay */
  margin-bottom: 10px;
}

.overlay-content p {
  font-size: 16px;
  color: #fff;
  margin: 5px 0;
}

/* Media Query for smaller screens */
@media (max-width: 600px) {
  .card {
    width: 95%;
    /* Full width on smaller screens */
    height: auto;
    /* Adjust height to auto for responsiveness */
  }

  .card-content h1 {
    font-size: 16px;
    /* Adjust font size for smaller screens */
  }

  .overlay-content h2 {
    font-size: 18px;
    /* Adjust font size for headings in overlay */
  }

  .overlay-content p {
    font-size: 14px;
    /* Adjust font size for paragraphs */
  }
}

/* Back to Top Button with Pulse Animation */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #deb823;
  color: #fff;
  /* Text color */
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  /* Shadow for depth */
  cursor: pointer;
  font-size: 24px;
  /* Icon size */
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  opacity: 0;
  animation: pulse 2s infinite;
}

.back-to-top:hover {
  background-color: #000000;
  color: #deb823;
  border: 2px solid #deb823;
  transform: scale(1.1);
}

.back-to-top i {
  margin: 14px 7px 0px 14px;
}

/* Pulse animation keyframes */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.7;
  }
}

/* Media Query for devices with screen width of 600px or less */
@media (max-width: 600px) {
  .back-to-top {
    width: 43px;
    height: 43px;
    font-size: 20px;
    bottom: 15px;
    right: 29px;
  }

  .back-to-top:hover {
    transform: scale(1.05);
  }
}

/* Breadcrumbs */
.breadcrumb-label {
  background-color: #333;
}

/* Breadcrumb Section Styles */
.breadcrumb-section {
  position: relative;
  width: 100%;
  height: 229px;
  overflow: hidden;
  padding-top: 30px;
  top: 39px;
  margin-bottom: 32px;
  /* margin-top: 8%; */
}

.breadcrumb-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translate(-50%, -50%);
  background-size: cover;
  transition: 1s opacity;
}

.breadcrumb-section .breadcrumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Overlay with transparency */
  z-index: 1;
}

.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  list-style: none;
  padding: 10px 0;
  margin: 100px;
  margin-right: 30px;
  margin-left: 20px;
  color: rgba(255, 255, 255, 0);
  overflow: hidden;
  white-space: nowrap;
}

.breadcrumb li {
  display: inline;
  margin: 0 5px;
  position: relative;
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin-left: 5px;
  color: #000000;
}

.breadcrumb li a {
  text-decoration: none;
  color: #deb823;
  transition: color 0.3s ease;
}

.breadcrumb li a:hover {
  color: #000000;
}

/* Keyframe Animations */
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb li:nth-child(1) {
  animation-delay: 0s;
}

.breadcrumb li:nth-child(2) {
  animation-delay: 0.1s;
}

.breadcrumb li:nth-child(3) {
  animation-delay: 0.2s;
}

.breadcrumb li:nth-child(4) {
  animation-delay: 0.3s;
}
/* Responsive Design */
@media (max-width: 768px) {
  .service-item {
    margin: 0px;
    padding: 0px;
  }

  #imgg {
    height: 7em;
    width: 90px;
    margin-top: 13px;
    /* background-color: yellow; */
    border-radius: 50%;
  }

  .services .service-item {
    margin-left: 0px;
  }
}

.submenu {
  display: none;
}

.submenu.show {
  display: block;
}


.menu-item.active + .submenu {
  display: block;
}
.temple-pooja-grid {
  display: flex;
  flex-wrap: wrap;
}
.temple-pooja-card {
  margin: 10px;
  position: relative;
  border: 2px solid gold;
  border-radius: 10px;
}
.temple-pooja-card p:nth-child(2):not(.ooverlay-content p:nth-child(2)){
    color: gold;
    font-weight: bold;
}
.ooverlay-content{
  width: 80%;
}

.ooverlay-content p{
  color: white;
}

.ccard-overlay{
  top: 0%;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.9);
  transition: opacity .5s;
  border-radius: 6px;
}

.ccard-overlay:hover{
  opacity: 1;
}


/* nav */

.lang-text img{height:6em;width: 90px;margin-top:10px;background-color: yellow;border-radius: 50%;}
.lang-text h4{font-size: 26px;}
/* Popup */
.row{
  margin-right: 0px;
  margin-left: 0px;
}
.popup {
  width: 100%;
  height: 100%;
  z-index: 1001;
  scrollbar-width: 0;
  position: fixed;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
}

.popshows {
  display: flex;
}

.popbox {
  background-color: rgb(0, 0, 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 400px;
  max-height: 400px;
  padding: 10px 0;
  border-radius: 20px;
  box-shadow: 0 0 5px gray;
}

.popimg1 {
  margin-top: 10px;
  position: absolute;
  top: 0;
  right: 3%;
}

.popimg2 {
  width: 300px;
}

.popbox div {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 70%;
  margin-top: 20px;
  margin-bottom: 20px;
}

.popbox button {
  padding: 10px 15px;
  border: none;
  outline: none;
  border-radius: 10px;
  /* background-color: gold; */
  color: white;
}
#color-1 button{
  background-color: red;
}
#color-2 button{
  background-color: blue;
}
.popbox {
  border-radius: 20px;
}

.popimg1:hover {
  cursor: pointer;
}

/* -------Creamatorium */
.temple-wrapper {
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.temple-container {
  display: flex;
  flex-direction: row;
}

.temple-sidebar {
  width: 250px;
  background-color: #fff;
  border-right: 1px solid #ccc;
  padding: 20px;
}

.temple-sidebar h2 {
  color: #b33;
  margin-bottom: 20px;
  font-size: 25px;
  font-weight: bold;
}

.temple-menu-item {
  margin-bottom: 20px;
}

.temple-menu-header {
  font-weight: bold;
  color: #b33;
  margin-bottom: 10px;
}

.temple-menu-item ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.temple-menu-item ul li {
  margin-bottom: 10px;
}

.temple-main-content {
  flex: 1;
  padding: 20px;
  margin-top: 112px;
}

.temple-main-content h2 {
  color: #b33;
  margin-bottom: 20px;
}

.temple-pooja-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 63px;
}

.temple-pooja-card {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 15px;
  width: calc(33.333% - 20px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.temple-pooja-card img {
  max-width: 100%;
  height: 80%;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.sidebar {
  width: 250px;
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  margin-top: 131px;
}

.sidebar h2 {
  font-size: 1.2em;
  margin-bottom: 15px;
  padding-left: 10px;
}

.menu-item {
  background-color: #d32f2f;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.dropdown-arrow {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  margin-left: 10px;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.menu-item.open .dropdown-arrow {
  transform: rotate(-135deg);
}

.submenu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: none;
  position: relative;
  background-color: #f5f5f5;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.submenu li {
  margin: 0;
}

.submenu li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

.submenu li a:hover {
  background-color: #ddd;
}

.main-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-top: 10px;
}

.main-menu li {
  border-bottom: 1px solid #ddd;
}

.main-menu li a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 10px;
}

.main-menu li a:hover {
  background-color: #f1f1f1;
}

@media (max-width: 768px) {
  .temple-container {
      flex-direction: column;
  }

  .temple-sidebar {
      width: 100%;
      border-right: none;
      border-bottom: 1px solid #ccc;
  }

  .temple-pooja-card {
      width: calc(50% - 20px);
  }
  .temple-main-content{
      margin-top: 1px;
  }
  .sidebar{
      align-items: center;
      margin-block-end: -8px;
      margin-left: 42px;
  }
}


/* Gallary section */

/* Reset default margin and padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container styling */
#container {
  width: 100%;
  height: 100%;
}

/* Transitions for elements */
.trans {
  transition: all 1s ease;
}

/* Top-level styling for the gallery */
.top {
  display: flex;
  flex-wrap: wrap; /* Ensures items wrap on smaller screens */
  width: 80vw;
  margin: 10vh auto;
}

/* List styling inside the gallery */
.top ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}

/* List item styling */
.top ul li {
  position: relative;
  flex: 1 0 25%; /* Flex-grow, flex-shrink, and base width */
  margin: 5px; /* Space between items */
  overflow: hidden;
}

/* Overlay styling on hover */
.top ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  content: '';
  text-align: center;
  pointer-events: none;
  transition: opacity 0.5s ease, background-color 0.5s ease;
}

/* Overlay effect on hover */
.top ul li:hover::before {
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.9);
}

/* Image styling */
.top ul li img {
  width: 100%;
  height: 100%; /* Ensure images cover the container */
  object-fit: cover; /* Maintain aspect ratio and cover the container */
  display: block;
}

/* Lightbox styling */
.lightbox {
  position: fixed;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

/* Lightbox image styling */
.lightbox img {
  max-width: 90%;
  max-height: 80%;
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  transition: all 1s ease;
}

/* Show lightbox on target */
.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

/* perfomance */

.divs{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 150px;
  margin-top: 10%;
  margin-bottom: 12px;
}

.bos1 img{
  width: 100px;
}

.bos1{
  height: 100%;
  width: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bdivs{
  display: flex;
  align-items: start;
  justify-content: center;
  flex-direction: column;
}

.bdivs p{
  font-size: 18px;
  font-weight: bold;
  color: crimson;
}

/* ------------ */
@media (max-width: 480px) {
  .temple-pooja-card {
      width: 100%;
  }
  .bos1 img{
    width: 80px;
  }
  #divs{
    flex-direction: column;
    height: fit-content;
    align-items: center;
    margin-top:3%;
    margin-bottom: -17%;
  }
  .bos1{
    margin-bottom: 5%;
    margin-top: 5%;
    width: 300px;
  }
  
}