
.collection-detail .container {
    padding-top: 40px;
    padding-bottom: 40px;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

/* New styles for gelinlik-grid and cards */
.gelinlik-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns on desktop */
    gap: 20px;
}

@media (max-width: 1024px) { /* Adjust for medium screens */
    .gelinlik-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) { /* Adjust for tablets */
    .gelinlik-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) { /* Adjust for mobile */
    .gelinlik-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
}

.gelinlik-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative; /* For favorite button positioning */
    transition: transform 0.2s ease-in-out;
}

.gelinlik-card:hover {
    transform: translateY(-5px);
}

.gelinlik-image {
    width: 100%;
    height: 450px; /* Increased height for vertical images */
    overflow: hidden;
    position: relative;
}

.gelinlik-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Change to contain to show full image */
    background-color: #f0f0f0; /* Add a background color for empty space */
    border-radius: 8px 8px 0 0;
}

.gelinlik-info {
    padding: 15px;
    text-align: center;
}

.gelinlik-info h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
    color: #333;
}

/* Favorite button styles */
.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c; /* Red background for not favorited */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    color: #ffffff; /* White heart for not favorited */
    transition: all 0.2s ease;
    z-index: 10;
}
.favorite-btn:hover {
    background: #c0392b; /* Slightly darker red on hover */
    transform: scale(1.1);
}
.favorite-btn.active {
    color: #ff4081; /* Red heart for favorited */
    background: #ffffff; /* White background for favorited */
}
