*{
    margin:0;
    padding:0;
   box-sizing: border-box;
}
.gallery img{
    width : 200px;
}
.gallery1 img{
    width : 200px;
}

body {
    background: linear-gradient(135deg, #000000, #434343);
    transition: background 0.5s ease-in-out;
    min-height: 100vh;
}
.gallery {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.gallery img {
    width: 200px;
    height: auto;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Optional: add mobile padding */
@media (max-width: 768px) {
    .gallery {
        padding: 10px 5px;
    }

    .gallery img {
        width: 150px; /* smaller for mobile */
    }
}

.gallery div{
    display:grid;
    grid-gap:20px;
    grid-template-columns:auto auto auto;
    width:100%;
    padding: 10px;
    flex:none;
    
}

.gallery div img{
    width:100%;
    filter:grayscale(100%);
    transition:transform 0.5s;
}

.gallery div img:hover{
    filter:grayscale(0);
    transform:scale(1.1);
}


.gallery-wrap h2{
    color:white;
}
.gallery-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:10% auto;
}
#back, #start{
    width:30px;
    margin:10px;
    cursor:pointer;
    
}
#backBtn, #startBtn{
    width:30px;
    margin:10px;
    cursor:pointer;
    
}
h1{
    text-align:center;
    color:white;
    margin-top:20px;
    font-family: 'Merriweather', serif;
}
.scroll-hint {
    display: none;
    text-align: center;
    color: white;
    animation: blink 1s ease-in-out 3;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@media (max-width: 768px) {
    .scroll-hint {
        display: block;
    }
}
/* mobile responsive */


@media (max-width: 768px) {
  .gallery {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: center;
    }

    .gallery img {
        width: 80%; /* better fit for mobile */
        height:auto;
    }

  .gallery div {
    display: flex;
    flex-direction: column;
    gap: 10px;
    grid-template-columns: none;
    padding: 5px;
  }

  .gallery-wrap {
    flex-direction: column;
    align-items: center;
  }

  #back, #start {
    display: none; /* Hide buttons on mobile if using vertical scroll */
  }
  .gallery div img:hover{
    filter:grayscale(0);
    transform:scale(0.9);
}
.gallery1 div img:hover{
    filter:grayscale(0);
    transform:scale(0.9);
}
  
  
}


