.body-think-pieces {
    background-color: #94A3A6;
}

.think-pieces-hero-section {
    display: flex;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 84vh;
    max-height: 1000px;
    min-height: 400px;
    overflow: hidden;
}

/* Smaller monitors and large laptops */
@media screen and (max-width: 1920px) {
    .hero-carousel {
        height: 84vh;
    }
}

/* Standard laptop screens */
@media screen and (max-width: 1600px) {
    .hero-carousel {
        height: 81vh;
    }
}

/* Tablet screens */
@media screen and (max-width: 1024px) {
    .hero-carousel {
        height: 70vh;
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    .hero-carousel {
        height: calc(100vh - 108px);
        max-height: none;
        min-height: calc(100vh - 108px);
    }
    
    .hero-carousel-image {
        object-position: center 30%;
    }
    
    /* Individual image positioning adjustments for mobile */
    .hero-carousel-image[src*="tpmain2"] {
        object-position: 20% 30%; /* Shift left - adjust percentage as needed */
    }
    
    .hero-carousel-image[src*="tpmain3"] {
        object-position: 30% 30%; /* Shift right - adjust percentage as needed */
    }
    
    .hero-carousel-dots {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 14px;
        height: 14px;
    }
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-image {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.6s ease-in-out;
}

.hero-carousel-image:first-child {
    position: absolute;
}

.hero-carousel-image.active {
    opacity: 1;
    z-index: 1;
}

.hero-carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.hero-dot.active {
    background-color: #ffffff;
    border-color: #ffffff;
}

.think-pieces-main-article-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5vh;
}

.think-pieces-main-article-section h1{
    font-size: 3em;
}

.think-pieces-main-article-section h2{
    font-size: 2em;
    font-weight: 800;
    margin-top: -1em;
}

.think-pieces-main-article-section .main-paragraph{
    font-size: 1.5em;
    max-width: 45em;
}

.think-pieces-main-article-section hr{
    width: 60%;
    height: 2px;
    background-color: #ffffff;
    margin: 2em 0;
}

.think-pieces-remainder-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 60%;
}

.think-pieces-remainder-section p{
    font-size: 1.2em;  
    margin-bottom: 1em;
    line-height: 1.6;
}

.think-pieces-remainder-section h3{
    font-size: 1.6em;
    margin-bottom: 0;
}

.think-pieces-remainder-section img{
    margin: 5vh 0;
    width: 80%;
}

.think-pieces-remainder-section .bolded-para{
    font-weight: 900;
}

.italicized-para{
    font-style: italic;
    font-weight: 700;
}

.smaller-paragraph-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.smaller-paragraph-container p{
    max-width: 90%;
    text-align: center;
    font-weight: 200;
}

.bottom-img-gallery{
    width: 100%;
    overflow: hidden;
    padding: 2em 0;
    background-color: #94A3A6;
}

.gallery-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: scroll-alternate 40s linear infinite alternate;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-track img {
    height: 400px;
    width: auto;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.gallery-track img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

@keyframes scroll-alternate {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(var(--scroll-distance, -200%));
    }
}

/* Gallery Modal Styles */
.tp-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.tp-gallery-modal.active {
    display: flex;
    opacity: 1;
}

.tp-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

.tp-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.tp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.tp-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2em;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.tp-modal-prev {
    left: 30px;
}

.tp-modal-next {
    right: 30px;
}

.tp-modal-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.tp-modal-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.tp-modal-nav.hidden {
    display: none;
}

/* MOBILE RESPONSIVE STYLES FOR THOUGHT PIECES PAGE */

/* Mobile main article section */
@media (max-width: 768px) {
  .think-pieces-main-article-section {
    padding: 2em 1em;
  }

  .think-pieces-main-article-section h1 {
    font-size: clamp(1.8em, 6vw, 2.5em);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 0.5em;
  }

  .think-pieces-main-article-section h2 {
    font-size: clamp(1.3em, 4vw, 1.6em);
    text-align: center;
    margin-top: 0;
    margin-bottom: 1em;
  }

  .think-pieces-main-article-section .main-paragraph {
    font-size: clamp(1em, 4vw, 1.3em);
    max-width: 100%;
    text-align: left;
    line-height: 1.6;
    margin-bottom: 1.5em;
  }

  .think-pieces-main-article-section hr {
    width: 80%;
    margin: 2em auto;
  }
}

/* Mobile remainder section */
@media (max-width: 768px) {
  .think-pieces-remainder-section {
    max-width: 100%;
    padding: 0 1em;
  }

  .think-pieces-remainder-section p {
    font-size: clamp(1em, 4vw, 1.2em);
    line-height: 1.6;
    text-align: left;
    margin-bottom: 1.2em;
  }

  .think-pieces-remainder-section h3 {
    font-size: clamp(1.2em, 4vw, 1.5em);
    text-align: center;
    margin: 1.5em 0;
    line-height: 1.3;
  }

  .think-pieces-remainder-section img {
    width: 100%;
    max-width: 500px;
    height: auto;
    margin: 2em auto;
    display: block;
  }

  .think-pieces-remainder-section .bolded-para {
    font-weight: 900;
    text-align: center;
    font-size: clamp(1.1em, 4vw, 1.3em);
    margin: 1.5em 0;
    padding: 0 1em;
  }

  .italicized-para {
    font-style: italic;
    font-weight: 700;
    text-align: center;
    margin: 1em 0;
  }
}

/* Mobile smaller paragraph container */
@media (max-width: 768px) {
  .smaller-paragraph-container {
    padding: 1em;
  }

  .smaller-paragraph-container p {
    max-width: 100%;
    font-size: clamp(0.9em, 3.5vw, 1.1em);
    line-height: 1.5;
    text-align: left;
  }
}

/* Mobile bottom image gallery */
@media (max-width: 768px) {
  .bottom-img-gallery {
    padding: 2em 1em;
  }

  .gallery-viewport {
    overflow: visible;
  }

  .gallery-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5em;
    width: 100%;
    animation: none;
  }

  .gallery-track img {
    height: auto;
    width: 100%;
    max-width: 100%;
  }

  .tp-modal-close {
    top: 15px;
    right: 15px;
    font-size: 1.5em;
    width: 40px;
    height: 40px;
  }

  .tp-modal-nav {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
  }

  .tp-modal-prev {
    left: 15px;
  }

  .tp-modal-next {
    right: 15px;
  }

  .tp-modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  .tp-modal-content img {
    max-height: 75vh;
  }
}

/* Tablet optimization (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .think-pieces-main-article-section {
    padding: 3em 2em;
  }

  .think-pieces-main-article-section h1 {
    font-size: 2.5em;
    text-align: center;
  }

  .think-pieces-main-article-section h2 {
    font-size: 1.8em;
  }

  .think-pieces-main-article-section .main-paragraph {
    font-size: 1.3em;
    max-width: 50em;
  }

  .think-pieces-remainder-section {
    max-width: 70%;
  }

  .think-pieces-remainder-section p {
    font-size: 1.1em;
  }

  .think-pieces-remainder-section img {
    width: 100%;
  }
}

/* Large mobile screens (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .think-pieces-main-article-section {
    padding: 2.5em 1.5em;
  }

  .think-pieces-remainder-section {
    padding: 0 1.5em;
  }
}

/* Very small screens (320px to 480px) */
@media (max-width: 480px) {
  .think-pieces-main-article-section {
    padding: 1.5em 0.8em;
  }

  .think-pieces-main-article-section h1 {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .think-pieces-main-article-section h2 {
    font-size: clamp(1.1em, 3.5vw, 1.4em);
  }

  .think-pieces-main-article-section .main-paragraph {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

  .think-pieces-remainder-section {
    padding: 0 0.8em;
  }

  .think-pieces-remainder-section p {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

  .think-pieces-remainder-section h3 {
    font-size: clamp(1.1em, 3.5vw, 1.3em);
  }

  .think-pieces-remainder-section img {
    margin: 1.5em auto;
  }

  .smaller-paragraph-container {
    padding: 0.8em;
  }

  .smaller-paragraph-container p {
    font-size: clamp(0.8em, 3vw, 1em);
  }

  .bottom-img-gallery {
    padding: 0.8em;
  }
}
