.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery img {
    width: 25%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

.collections-section {
    padding: 50px 20px;
    background-color: #ffffff;
  }
.collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 20px;
} 

.collection-item {
    position: relative;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.collection-item:hover {
    transform: scale(1.05);
}

.collection-item img {
    width: 100%;
    height: auto;
    display: block;
}
.item-details {
    padding: 10px;
    text-align: center;
}

.item-details h3 {
    margin: 5px 0;
    font-size: 18px;
}

.item-details p {
    margin: 0;
    font-size: 16px;
    color: #555;
}

.item-hover-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0A1A2F;
    filter: opacity(0.8);
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.collection-item:hover .item-hover-menu {
    opacity: 1;
}

.item-hover-menu .view-details-btn {
    margin: 5px;
    padding: 10px 15px;
    border: none;
    background-color: #ffd700;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}

.item-hover-menu .view-details-btn:hover {
    background-color: orangered;
}

/* Popup Modal */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;    
}

.hidden {
    display: none;
}

.popup-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

.popup-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.popup-content h3 {
    font-size: 22px;
    margin: 10px 0;
}

.popup-content p {
    font-size: 18px;
    color: #555;
}

.popup-content .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: white;
}

.popup-content button {
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
}