body {
    overflow-x: hidden;
    width: 100vw;
}


h4 {
    color: var(--bs-gray-500) !important;
    font-family: var(--heading-font);
    font-size: 1rem;
    transition: all 0.3s ease-out;
    cursor: cell;
}


/* Hero Section Styling */
.above-hero {
  display: flex;
  justify-content: space-between;
  align-self: flex-end;
  gap: 1rem;
  padding-top: 2rem;
  width: 100%;
  margin: auto;
  height: fit-content;
  margin-top: 5rem;
  margin-bottom: 2rem;
}

.above-hero h1 {
  font-size: 3rem !important;
  font-family: var(--heading-font);
  color: var(--bs-gray-800) !important;
  margin-top: 0;
  margin-bottom: 0;
}

.above-hero div {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: end;
  width: 50%;
  margin-bottom: 1rem;
}

#hero {
    background: var(--bs-gray-200);
    background-image: url('https://static.wixstatic.com/media/29fd1a_970e9beb7f304aefaf7b9bed5cb4c778~mv2.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    min-height: 400px;
    position: relative;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden; 
    padding-top: 5rem;
}

#hero h3 {
    color: var(--bs-gray-800);
    font-family: var(--heading-font);
    margin-bottom: 2rem;
    font-size: 3rem;

}


/* first section */

.article-section {
    display: flex;
    justify-content: space-between;
    gap: 10%;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.article-section .text {
    flex: 2;
    text-align: justify;
}

.article-section .article-img {
    flex: 1;
}

.article-img {
    min-width: 200px;
    min-height: 200px;
    background-size: cover;
    background-color: black;
    background-image: url('https://static.wixstatic.com/media/29fd1a_970e9beb7f304aefaf7b9bed5cb4c778~mv2.jpg');
    border-radius: 12px;
    outline: var(--primary-color) 2px dotted;
    outline-offset: 12px;
    position: relative;
}

.article-img .ball {
    position: absolute;
    top: 5%;
    left: calc(10px - 32px);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}


/* Gallery Styling */
#gallery .controls {
    gap: 10px;
    position:sticky;
}

#gallery .controls div {
    border-color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all .5s ease;
    height: 35px;
    width: 35px;
}

#gallery .controls i {
    color: var(--bs-gray-500);
    font-weight: bold;
}

#gallery .controls div:hover {
    background-color: var(--bs-gray-500);
    color: white !important;
    border-width: none;
}

#gallery .controls div:hover i {
    color: white !important;
}

.masonry {
    column-count: 4; /* Number of columns */
    width: 100%;
    min-height: 100vh;
    max-width: 1200px;
    margin: 20px auto;
}

.masonry img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Add these styles for the gallery lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
    transform: scale(0.95);
    transition: transform .3s ease;
}

.gallery-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, .2);
}

/* Add this to make gallery images clickable */
.masonry img {
    cursor: pointer;
    transition: transform .3s ease;
}

.masonry img:hover {
    transform: scale(1.02);
}

@media screen and (max-width: 768px) {
    .masonry {
        column-count: 2;
        gap: 5px;
    }
}





@media(max-width: 600px){
  .above-hero {
    flex-direction: column;
  }

  .above-hero h1 {
    font-size: 2rem;
  }

  #hero {
    background-attachment: scroll;
  }

  .above-hero div {
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: x-small;
  }

}


/* ---- mini-tailwind (only what we need) ---- */
.grid {
  display: grid
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr))
}

.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr))
}

.gap-4 {
  gap: 1rem
}

/* ---- reels section ---- */
.reels-section {
  padding: 4rem 1rem;
  background: #fff
}

.reels-header {
  text-align: center;
  margin-bottom: 2rem
}

.reels-header h2 {
  font-size: 1.75rem;
  font-weight: 700
}

.reels-header p {
  color: #6b7280;
  margin-top: .25rem;
}

.ig_text {
  color: rgb(174, 22, 116);
  font-size: 0.9rem;
  margin-top: .25rem;
  text-decoration: none;
}

.ig_text:hover {
  font-weight: bolder;
  cursor: pointer;
}



/* ---- grid ---- */
.reels-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
}


@media (min-width: 640px) {
  .reels-grid {
    grid-template-columns: repeat(3, 1fr)
  }
}

@media (min-width: 1024px) {
  .reels-grid {
    grid-template-columns: repeat(4, 1fr)
  }
}

/* ---- thumbnail card (9:16) ---- */
.reel-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: .75rem;
  overflow: hidden;
  cursor: pointer;
  background: #111;
}

.reel-thumb img,
.reel-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-thumb__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 30px;
  background: rgba(0, 0, 0, 0.566);
  opacity: 0;
  transition: opacity .25s;
  color: white;
  text-align: center;
}

.reel-date {
  font-size: 0.85rem;
  margin-top: 0.25rem;
  color: #9ca3af;
}

.reel-thumb__play .small-text {
  font-size: 0.75rem;
  margin-top: 0.5rem;
  color: #d1d5db;
}

.reel-thumb:hover .reel-thumb__play {
  opacity: 1
}

/* .reel-thumb__play svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: #fff
} */

.reel-icon {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox:not([aria-hidden="true"]) {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  width: 90%;
  max-width: 420px;
  position: relative;
}

.lightbox__content video {
  width: 100%;
  height: auto;
  max-height: 100vh;
  border-radius: .75rem;
  display: block;
}

.lightbox__meta {
  color: #fff;
  position: absolute;
  text-align: center;
  margin-top: -6.5rem;
  font-size: xx-small !important;
  backdrop-filter: blur(2px);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
}

.lightbox__close {
  top: 1rem;
  right: 1rem
}

.lightbox__nav--prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%)
}

.lightbox__nav--next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%)
}

/* lock body when lightbox open */
body.reel-lightbox-open {
  overflow: hidden
}