html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

img.flag-icon {
    border-radius: 0;
}

/* Only for the specific image in the content box */
.content-thumb {
    max-width: 300px; /* scale large images down */
    height: auto; /* keep aspect ratio */
}

/* Optional: on very small screens let it fill the container */
@media (max-width: 576px) {
    .content-thumb {
        max-width: 100%;
    }
}

/* News detail page image */
.news-image {
    max-width: 500px; /* do not exceed 500px on large screens */
    width: 100%; /* scale to container on small screens */
    height: auto; /* keep aspect ratio */
    display: block; /* center alignment possible */
    margin-left: auto;
    margin-right: auto;
}

.gallery-thumb {
    max-width: 75%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

    .gallery-thumb:hover {
        transform: scale(1.13) translateY(-3px); /* powiększenie i lekkie uniesienie */
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    }

/* Banner title: fluid, readable, and constrained */
.banner-title {
    /* fluid font size: min 1rem, grows with viewport, max 2.5rem */
    /*font-size: clamp(1rem, 2.2vw + 0.4rem, 2.5rem);*/
    /* improve wrapping; fallbacks are fine if unsupported */
    /*text-wrap: balance;*/ /* modern browsers */
    /*line-height: 1.2;*/ /* tighter lines for headings */
    /*max-width: min(90vw, 40ch);*/ /* keep the label from getting too wide */
    /* visual styling to keep text readable on the image */
    /*color: #fff;
    background: rgba(0,0,0,.55);*/ /* semi-transparent pill */
    /*padding: clamp(.25rem, 1vw, .75rem) clamp(.5rem, 1.5vw, 1rem);
    border-radius: .4rem;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);*/
}

/* Banner container without fixed ratio */
.banner-frame {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000; /* fallback background if image has different aspect ratio */
    overflow: hidden;
}

/* Banner image keeps natural proportions */
.banner-img {
    width: 100%; /* scale to container width */
    height: auto; /* keep natural aspect ratio */
    max-height: 70vh; /* prevent banner from being too tall */
    object-fit: contain; /* show the whole image without cropping */
}

/* Optional: better text readability on captions */
.carousel-caption .text-shadow {
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
}

/* Custom positioning for banner caption on the right side */
.carousel-caption.caption-right {
    right: 5%; /* distance from the right edge */
    left: auto; /* disable default left positioning */
    text-align: right;
}

/* Change default carousel arrows from white to black */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100); /* turns white to black */
}

/* Optional: adjust hover effect */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(200deg);
    /* this will give a colored hover effect (blue-ish), tweak hue-rotate */
}

/* Default indicators */
.carousel-indicators [data-bs-target] {
    background-color: #000; /* black instead of white */
    opacity: .5;
}

/* Active indicator */
.carousel-indicators .active {
    background-color: #0d6efd; /* brand primary color (Bootstrap blue) */
    opacity: 1;
}

/* Optional: make them rectangles instead of dots */
.carousel-indicators [data-bs-target] {
    width: 30px; /* length of the line */
    height: 4px; /* thickness */
    border-radius: 2px; /* rounded edges */
}

/* Product groups icon grid */
/* Card wrapper */
.pg-card {
    background: #fff; /* clean tile background */
    border-radius: 1rem; /* soft rounded corners */
    transition: transform .15s ease, box-shadow .15s ease;
    padding: 16px; /* internal spacing */
}

    /* Hover lift effect */
    .pg-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    }

/* Thumbnail area keeps icons consistent */
.pg-thumb {
    min-height: 200px; /* consistent block height for icons */
    background: #f8f9fa; /* subtle background to frame transparent PNG/SVG */
    border-radius: .75rem;
    margin-bottom: 12px;
    overflow: hidden;
}

/* Icon image sizing - keep original proportions */
.pg-img {
    max-width: 100%;
    max-height: 180px; /* consistent icon size */
    height: auto; /* keep natural aspect ratio */
    object-fit: contain; /* no cropping for transparent icons */
}

/* Title and description */
.pg-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #212529;
}

.pg-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Optional: tighter spacing on very small screens */
@media (max-width: 400px) {
    .pg-thumb {
        min-height: 90px;
    }

    .pg-img {
        max-height: 72px;
    }
}

/* Language flag buttons */
.lang-flag {
    border: 2px solid transparent;
    border-radius: 6px;
    padding: 2px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    /* Hover effect */
    .lang-flag:hover {
        border-color: #adb5bd; /* gray */
    }

    /* Active language highlight */
    .lang-flag.active {
        border-color: #0d6efd; /* Bootstrap primary */
        box-shadow: 0 0 6px rgba(13, 110, 253, 0.5);
    }

.cookie-banner {
    font-size: 0.9rem;
    z-index: 1055; /* above navbar */
}

/* About page: keep photo crisp and not oversized */
.about-photo {
    max-width: 560px; /* cap on large screens */
    width: 100%; /* scale on small screens */
    height: auto; /* keep aspect ratio */
    display: block;
    margin-left: 0; /* photo sits flush to its column */
}

/* flags sizing */
.flag-img {
    height: 32px;
}

/* highlight (zostawiamy z wcześniejszej wersji) */
.lang-flag {
    border: 2px solid transparent;
    border-radius: 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .lang-flag:hover {
        border-color: #adb5bd;
    }

    .lang-flag.active {
        border-color: #0d6efd;
        box-shadow: 0 0 6px rgba(13,110,253,.5);
    }

img.trump-gold {
    border: 5px solid gold; /* złota ramka */
    border-radius: 8px; /* lekko zaokrąglone rogi */
    box-shadow: 0 0 15px rgba(218,165,32,0.8); /* złoty blask */
    padding: 3px; /* trochę przestrzeni */
    background: linear-gradient(45deg, gold, goldenrod, gold); /* złote tło */
}

/* Light separator */
.drawing-row {
    border-color: #e7e7e7;
}

.drawing-img {
    max-height: 320px; /* desktop */
}

@media (max-width: 576px) {
    .drawing-img {
        max-height: 240px; /* mobile */
    }
}





