/*
Template Name: Insurance
File: Layout CSS
Author: TemplatesOnWeb
Author URI: https://www.templateonweb.com/
Licence: <a href="https://www.templateonweb.com/license">Website Template Licence</a>
*/
/*********************about****************/
.hist_2{
background:#201D1D;
padding:40px;
border-radius:8px;
margin-left:0;
margin-right:0; 
 }
#team{
padding-top:40px;
padding-bottom:40px;
background:#f4f4f4; 
 }
/*********************about_end****************/

@media screen and (max-width : 767px){
.hist_1i {
width:100%!important; 
 }
.hist_2 {
padding: 30px 15px 40px 15px;
 }
.hist_2r{
margin-top:10px; 
 }
}
@media (min-width:768px) and (max-width:991px) {

 }
@media (min-width:992px) and (max-width:1200px) {

 }

body { margin: 0; font-family: sans-serif; }

/* Siatka miniatur - Responsywna */
.thumbnails-grid {
    display: flex;
    flex-wrap: wrap;       /* Pozwala zdjęciom przechodzić do nowej linii */
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.thumb {
    width: 100%;           /* Na telefonach zajmie całą szerokość */
    max-width: 400px;      /* Maksymalnie 400px szerokości */
    height: 500px;         /* Stała wysokość dla równego układu */
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s, filter 0.3s;
    padding: 10px;
}

.thumb:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Lightbox (Podgląd) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

#lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border: 3px solid #fff;
}

/* Przyciski i nawigacja */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 20px 10px;
    border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
}

/* RWD: Mniejsze przyciski na telefonach */
@media (max-width: 600px) {
    .nav-btn { font-size: 30px; padding: 10px; }
    .thumb { height: 250px; }
}
