/* Lifestyle Page Specific Styles */
.lifestyle-container {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0 1rem;
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Desktop Layout */
.lifestyle-tile {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 290px;
}

.lifestyle-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: rgba(245, 245, 245, 0.5); /* Very light grey background */
    padding-top: 8px; /* Added top padding */
}

/* Image Styles - Centered Square */
.lifestyle-image {
    height: calc(100% - 8px); /* Adjust height to account for padding */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Thin subtle outline */
    box-sizing: border-box; /* Ensure border doesn't affect dimensions */
}

.lifestyle-info {
    padding: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-height: 70px;
}

.lifestyle-info h3 {
    font-size: 1.2rem;
    color: var(--rainbow-purple);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.social-links {
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.social-links a {
    color: var(--light-text);
    transition: var(--transition);
    font-size: 1.3rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: var(--rainbow-purple);
    transform: scale(1.15);
}

/* No Image Styles */
.lifestyle-image-container.no-photo {
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifestyle-image-container.no-photo::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #E6E6FA;
    z-index: 1;
}

.lifestyle-image-container.no-photo .lifestyle-image {
    display: none;
}

.lifestyle-image-placeholder {
    position: absolute;
    z-index: 2;
    padding: 1rem;
    text-align: center;
    color: var(--rainbow-purple);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .lifestyle-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .lifestyle-info h3 {
        font-size: 1.1rem;
    }
    
    .social-links a {
        font-size: 1.2rem;
        width: 26px;
        height: 26px;
    }
}

/* Mobile Layout */
@media (max-width: 480px) {
    .lifestyle-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .lifestyle-tile {
        height: auto;
    }
    
    .lifestyle-image-container {
        height: 160px; /* Square height for mobile */
        padding-top: 6px; /* Slightly less padding on mobile */
    }
    
    .lifestyle-image {
        width: auto;
        height: calc(100% - 6px); /* Adjust for mobile padding */
    }
}