/* Property Grid Gallery Widget Styles */

.property-grid-gallery {
    display: grid;
    width: 100%;
}

.property-grid-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.property-grid-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

.property-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.property-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.property-grid-item:hover .property-grid-content {
    opacity: 1;
}

.property-grid-title {
    margin: 0;
    padding: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.property-grid-subtitle {
    margin: 8px 0 0 0;
    padding: 0;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
}

.property-grid-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.property-grid-gallery-links {
    display: none !important;
}

/* Responsywność */
@media (max-width: 1024px) {
    .property-grid-title {
        font-size: 20px;
    }
    
    .property-grid-subtitle {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .property-grid-title {
        font-size: 18px;
    }
    
    .property-grid-subtitle {
        font-size: 10px;
    }
}

/* Featherlight customization dla lepszego wyglądu */
.featherlight .featherlight-content {
    border-radius: 8px;
    overflow: hidden;
}

.featherlight .featherlight-image {
    border-radius: 8px;
}

.featherlight-next,
.featherlight-previous {
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.featherlight-next span,
.featherlight-previous span {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    transition: background 0.3s ease;
}

.featherlight-next:hover span,
.featherlight-previous:hover span {
    background: rgba(0, 0, 0, 0.8);
}
