.text {
    font-family: 'Fredoka One', monospace;
    text-align: justify;
    line-height: 1.8;
    font-size: 16px;
    margin: 16px;
    width: 80%;
}
h2{
    text-align: center;
}
#wrappedText {
    white-space: pre-line;
    line-height: 1.8;
    font-size: 16px;
    font-family: 'Fredoka One', monospace; 
}
.gallery {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    height: 600px;  
    scroll-snap-type: x mandatory;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #f9f9f9;
    scroll-padding: 10px;
    white-space: nowrap;
}

.media-thumb {
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    cursor: pointer;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease-in-out;
}

.media-thumb:hover {
    transform: scale(1.05);
}

.media-thumb img,
.media-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
 
.media-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.media-modal .close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.media-modal .media-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
}

.media-modal img,
.media-modal video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}
@media (max-width: 768px) {
    .gallery {
        grid-auto-columns: 160px;
        height: 260px;
        gap: 12px;
    }

    .media-thumb {
        width: 160px;
        height: 110px;
    }
} 
@media (max-width: 480px) {
    .gallery {
        grid-auto-columns: 140px;
        height: 240px;
        gap: 10px;
    }

    .media-thumb {
        width: 140px;
        height: 100px;
    }
} 
.container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
}

.image-side {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  text-align: center;
}

.image-side img {
  max-width: 100%;
  height: auto;
}

.text-side {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.text-side h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 20px;
  color: #111;
}

.text-side p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}