/**
 * Flickr Gallery Premium - Frontend Styles
 * Modern Hover Effects & Layouts
 */

/* Container for the image brick */
.fg-modern-hover-brick {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    /* Modern rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: translateZ(0);
    /* Hardware acceleration */
}

/* Lift effect on hover */
.fg-modern-hover-brick:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* The Background Image (div) */
.fg-brick-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

/* Subtle zoom of image on hover */
.fg-modern-hover-brick:hover .fg-brick-image {
    transform: scale(1.05);
}

/* Dark Gradient Overlay */
.fg-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.85) 100%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.fg-modern-hover-brick:hover .fg-hover-overlay {
    opacity: 1;
}

/* Centered Plus Icon */
.fg-hover-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    /* Glassy background */
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Icon (Pseudo-element for plus sign) */
.fg-hover-icon::before,
.fg-hover-icon::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    border-radius: 2px;
}

.fg-hover-icon::before {
    width: 2px;
    height: 18px;
}

.fg-hover-icon::after {
    width: 18px;
    height: 2px;
}

.fg-modern-hover-brick:hover .fg-hover-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Content at the bottom (Title & View Photo) */
.fg-hover-content {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    text-align: center;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease-out 0.1s;
    /* Slight delay */
    color: white;
    pointer-events: none;
    /* Let clicks pass through */
}

.fg-modern-hover-brick:hover .fg-hover-content {
    transform: translateY(0);
    opacity: 1;
}

.fg-photo-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.2;
}

.fg-view-text {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

/* Follow Button Fixes */
.flickr-follow-button .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.fr-profile-img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    margin: 0 !important;
    display: inline-block;
}