/* Small additions for the Laravel version (kept separate from the original theme CSS). */
.home-ad-row { margin-bottom: 20px; }
.home-ad-row .codedokan_widget img { max-width: 100%; height: auto; }
.codedokan-incontent-ad { margin: 20px 0; text-align: center; }
.codedokan-incontent-ad-label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.single-content2 img { max-width: 100%; height: auto; }
.single-content2 iframe { max-width: 100%; }
.single-video-embed { position: relative; padding-top: 56.25%; margin-bottom: 15px; }
.single-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.singlePage2-tag a { display: inline-block; margin: 0 6px 6px 0; }
.page-content-box { background: #fff; padding: 20px; margin-bottom: 30px; }
.page-content-box h1 { font-size: 30px; margin-bottom: 20px; }
.photo-album-grid .item img, .video-page-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.empty-news { padding: 40px 20px; text-align: center; background: #fff; }
@media print {
    .codedokan_header3 .header3-social, .menu_section, .top-scroll-section5, .footer-area,
    .single-social2, .related-section, .fixrd-sitber, .single-page-add2, .single-page2-topAdd { display: none !important; }
}

/* Theme options */
.social-svg { vertical-align: -2px; }
.no-sticky-menu .menu_section.sticky { position: relative !important; }
.header3-logo-left .header3-logo { text-align: left; }
.header3-logo-left .header3-date { text-align: center; }
@media (max-width: 767px) { .header3-logo-left .header3-logo { text-align: center; } }

/* Pictures inside the news text and the news gallery */
.single-content2 figure, .single-content2 .news-figure { margin: 20px 0; text-align: center; }
.single-content2 figure img { border-radius: 4px; }
.single-content2 figcaption { margin-top: 6px; font-size: 15px; color: #666; }
.news-gallery { margin: 24px 0; }
.news-gallery-title { font-size: 20px; margin-bottom: 12px; padding-left: 10px; border-left: 4px solid var(--cd-primary); }
.news-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.news-gallery-grid figure { margin: 0; }
.news-gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; transition: opacity .2s; }
.news-gallery-grid a:hover img { opacity: .85; }
.news-gallery-grid figcaption { font-size: 14px; color: #555; margin-top: 4px; line-height: 1.4; }
@media (max-width: 575px) { .news-gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* Photocard button (shown only to people allowed to download) */
.photocard-wrap { margin: 18px 0; text-align: center; }
.photocard-btn { padding: 10px 22px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.photocard-btn:hover { background: var(--cd-primary-dark); }
.single-left-ad { margin-top: 15px; }
@media print { .photocard-wrap { display: none !important; } }

/* Copy-link button (after print) */
.single-social2 a.share-copy { position: relative; background: #475569; }
.single-social2 a.share-copy.is-copied { background: #16a34a; }
.single-social2 .share-copied { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px); padding: 4px 10px; border-radius: 6px;
    background: #111; color: #fff; font-size: 13px; line-height: 1.4; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.single-social2 .share-copied::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #111; }
.single-social2 a.share-copy.is-copied .share-copied { opacity: 1; transform: translateX(-50%); }
@media (max-width: 420px) {
    .single-social2 { display: flex; flex-wrap: wrap; gap: 4px; }
    .single-social2 a { width: 34px; height: 34px; line-height: 34px; margin-right: 0 !important; }
    .single-social2 .share-copied { left: auto; right: 0; transform: translateY(4px); }
    .single-social2 a.share-copy.is-copied .share-copied { transform: none; }
    .single-social2 .share-copied::after { left: auto; right: 12px; }
}
@media print { .single-social2 { display: none !important; } }

/* Phones: home + first three menu items inside the menu bar (left of the calendar, search and ☰ buttons) */
.mobile-quick-menu { display: none; }
@media (max-width: 660px) {
    .menu_section_three .mobile-quick-menu { position: absolute; top: 0; left: 6px; right: 160px; height: 48px; z-index: 10003;
        display: flex; align-items: center; justify-content: space-around; gap: 2px; overflow: hidden; }
    .mobile-quick-menu a { flex: 0 1 auto; min-width: 0; padding: 6px 9px; border-radius: 6px; color: var(--cd-menu-text) !important; font-size: 16.5px; line-height: 1.5;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
    .mobile-quick-menu a:active, .mobile-quick-menu a.is-current { background: rgba(0, 0, 0, .18); }
    .mobile-quick-menu a.mq-home { flex: none; font-size: 22px; padding: 4px 8px; line-height: 1; }
}
/* Narrow phones: tighter spacing so home + two items + "জেলার খবর" fit without being cut. */
@media (max-width: 480px) {
    .menu_section_three .mobile-quick-menu { right: 152px; left: 2px; gap: 0; }
    .mobile-quick-menu a { padding: 6px 5px; font-size: 16px; }
    .mobile-quick-menu a.mq-home { padding: 4px 5px; font-size: 21px; }
    .mobile-quick-menu a.mq-district { flex: none; }
}
@media (max-width: 359px) {
    .mobile-quick-menu a { padding: 6px 4px; font-size: 15px; }
}

/* Source line under imported news */
.news-source { margin: 16px 0 0; padding-top: 10px; border-top: 1px dashed #ddd; font-size: 15px; color: #666; }
.news-source a { color: var(--cd-primary); }

/* Reader poll */
.poll-box { margin-top: 16px; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; background: #fff; }
.poll-head { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--cd-primary); color: #fff; font-size: 18px; font-weight: 700; }
.poll-head i { font-size: 22px; }
.poll-body { padding: 14px; }
.poll-question { font-size: 20px; line-height: 1.4; font-weight: 700; margin: 0 0 12px; color: #111; }
.poll-option { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 9px 12px; border: 1.5px solid #e2e2e2; border-radius: 8px; cursor: pointer; font-size: 17px; transition: border-color .15s, background .15s; }
.poll-option:hover { border-color: var(--cd-primary); }
.poll-option:has(input:checked) { border-color: var(--cd-primary); background: #fff5f5; background: color-mix(in srgb, var(--cd-primary) 7%, #fff); font-weight: 700; }
.poll-option input { width: 18px; height: 18px; accent-color: var(--cd-primary); flex: none; }
.poll-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.poll-submit { padding: 8px 20px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; cursor: pointer; transition: background .2s; }
.poll-submit:hover { background: var(--cd-primary-dark); }
.poll-submit:disabled { opacity: .6; cursor: wait; }
.poll-link { padding: 0; border: 0; background: none; color: #555; font-size: 15px; text-decoration: underline; cursor: pointer; }
.poll-link:hover { color: var(--cd-primary); }
.poll-row { margin-bottom: 12px; }
.poll-row-top { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; }
.poll-row-top b { color: var(--cd-primary); }
.poll-bar { height: 10px; margin: 4px 0 2px; border-radius: 999px; background: #eee; overflow: hidden; }
.poll-bar i { display: block; height: 100%; border-radius: 999px; background: var(--cd-primary); transition: width .8s ease; }
.poll-row small { color: #777; font-size: 13.5px; }
.poll-row.is-mine .poll-row-top span::after { content: " ✓"; color: #16a34a; font-weight: 700; }
.poll-total { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px dashed #ddd; font-size: 15px; color: #555; margin-bottom: 6px; }
.poll-closed { font-size: 13px; padding: 1px 8px; border-radius: 999px; background: #f3f4f6; }
.poll-message { margin: 8px 0 0; font-size: 15px; color: #166534; }
.poll-message:empty { display: none; }
.poll-message.is-info { color: #92400e; }
.poll-message.is-error { color: #b91c1c; }

/* ===================== জেলার খবর page ===================== */
.dn-page { padding: 6px 0 40px; }
.dn-hero { background: #fff; border-radius: 10px; padding: 18px 20px 16px; margin-bottom: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); border-top: 3px solid var(--cd-primary); }
.dn-crumb { font-size: 15px; color: #777; margin-bottom: 6px; }
.dn-crumb a { color: #555; }
.dn-crumb a:hover { color: var(--cd-primary); }
.dn-title { font-size: 30px; line-height: 1.3; font-weight: 700; margin: 0 0 4px; color: #111; }
.dn-title i { color: var(--cd-primary); }
.dn-intro { color: #555; font-size: 16.5px; margin: 0 0 14px; }
.dn-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 240px)) auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.dn-field label { display: block; font-size: 14px; color: #666; margin-bottom: 2px; }
.dn-field .form-select { font-size: 17px; padding: 8px 36px 8px 12px; border-color: #d6d6d6; border-radius: 8px; }
.dn-field .form-select:focus { border-color: var(--cd-primary); box-shadow: 0 0 0 3px rgba(216, 0, 0, .12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cd-primary) 18%, transparent); }
.dn-reset { justify-self: start; padding: 8px 14px; border: 1px solid #d6d6d6; border-radius: 8px; background: #fff; color: #444; font-size: 15.5px; cursor: pointer; }
.dn-reset:hover { border-color: var(--cd-primary); color: var(--cd-primary); }
.dn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-chips-sub { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #e2e2e2; }
.dn-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; border: 1px solid #dcdcdc; background: #fff; color: #333 !important; font-size: 16px;
    line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.dn-chip small { padding: 0 7px; border-radius: 999px; background: #f0f0f0; color: #666; font-size: 12.5px; }
.dn-chip:hover { border-color: var(--cd-primary); color: var(--cd-primary) !important; }
.dn-chip.is-active { background: var(--cd-primary); border-color: var(--cd-primary); color: #fff !important; }
.dn-chip.is-active small { background: rgba(255, 255, 255, .25); color: #fff; }
.dn-chips-sub .dn-chip { font-size: 15px; padding: 3px 12px; }
.dn-chips-upazila { align-items: center; }
.dn-chips-upazila .dn-chip { font-size: 14.5px; padding: 2px 11px; background: #fafafa; }
.dn-chips-upazila .dn-chip.is-active { background: var(--cd-primary); }
.dn-chips-label { font-size: 14px; color: #666; margin-right: 2px; white-space: nowrap; }
.dn-chips-label i { color: var(--cd-primary); }
.dn-field .form-select:disabled { background-color: #f3f3f3; color: #999; }
.byline-designation { color: #666; font-weight: 400; }
.author-card { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid #e8e8e8; border-left: 4px solid var(--cd-primary); }
.author-card img { flex: none; border-radius: 50%; object-fit: cover; background: #eee; }
.author-card h1 { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 700; color: #111; }
.author-designation { color: var(--cd-primary); font-size: 16px; }
.author-card p { margin: 6px 0 0; color: #444; font-size: 16px; line-height: 1.6; }
.author-count { margin-top: 4px; color: #777; font-size: 14px; }
@media (max-width: 480px) { .author-card { gap: 12px; padding: 12px; } .author-card img { width: 64px; height: 64px; } .author-card h1 { font-size: 21px; } }
.single-place a { color: inherit; }
.single-place a:hover { color: var(--cd-primary); }
.dn-meta { color: #666; font-size: 15px; margin: 0 2px 10px; }
.dn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transition: opacity .15s; }
.dn-grid.is-loading { opacity: .45; pointer-events: none; }
.dn-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0, 0, 0, .07); transition: transform .2s, box-shadow .2s; }
.dn-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .35); }
.dn-card a { display: block; color: inherit; text-decoration: none; }
.dn-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e9e9e9; }
.dn-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.dn-card:hover .dn-img img { transform: scale(1.05); }
.dn-label { position: absolute; top: 8px; right: 8px; padding: 2px 10px; border-radius: 4px; background: var(--cd-primary); color: #fff; font-size: 13.5px; line-height: 1.6; }
.dn-body { padding: 10px 12px 12px; }
.dn-body h3 { font-size: 19px; line-height: 1.4; font-weight: 700; margin: 0 0 6px; color: #111; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dn-card:hover h3 { color: var(--cd-primary); }
.dn-body time { font-size: 14px; color: #777; }
.dn-empty { background: #fff; border-radius: 10px; padding: 40px 20px; text-align: center; color: #666; }
.dn-empty i { font-size: 54px; color: #ccc; }
.dn-more { text-align: center; margin-top: 22px; }
.dn-more button { padding: 10px 28px; border: 1.5px solid var(--cd-primary); border-radius: 999px; background: #fff; color: var(--cd-primary); font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.dn-more button:hover { background: var(--cd-primary); color: #fff; }
.dn-more button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 1199px) { .dn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
    .dn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .dn-title { font-size: 24px; }
    .dn-filter { grid-template-columns: 1fr 1fr; }
    .dn-field-upazila, .dn-reset { grid-column: 1 / -1; }
    .dn-body h3 { font-size: 17px; }
    /* Division buttons scroll sideways on phones instead of taking several rows. */
    #dnDivisionChips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    #dnDivisionChips::-webkit-scrollbar { display: none; }
    #dnDivisionChips .dn-chip { flex: none; }
}
@media (max-width: 420px) { .dn-hero { padding: 14px 12px; } .dn-body { padding: 8px 9px 10px; } .dn-body h3 { font-size: 16px; } }

/* Home page: "find news by division and district" box (the map used to be here) */
/* The heading is a coloured bar joined to the box, so it never reads as one more news headline. */
.loc-head { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 700; }
.loc-head a { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 8px 8px 0 0; color: #fff !important; text-decoration: none;
    background: var(--cd-primary); background: linear-gradient(135deg, var(--cd-primary), var(--cd-primary-dark)); }
.loc-head a > i:first-child { font-size: 24px; }
.loc-head span { flex: 1; min-width: 0; }
.loc-head-arrow { font-size: 16px; opacity: .85; transition: transform .2s; }
.loc-head a:hover .loc-head-arrow { transform: translateX(3px); }
.loc-head + .loc-box { border-top: 0; border-radius: 0 0 8px 8px; }
@media (max-width: 767px) { .loc-head { margin-top: 22px; } }
.loc-box { padding: 14px; border-radius: 8px; background: #f4f6f8; border: 1px solid #e5e5e5; }
.loc-box p { margin: 0 0 10px; font-size: 15px; color: #555; line-height: 1.5; }
.loc-box .form-control, .loc-box .form-select { margin-bottom: 8px; font-size: 17px; border-radius: 6px; }
.loc-box .loc-box-btn { display: block; width: 100%; padding: 8px; border: 0; border-radius: 6px; background: var(--cd-primary); color: #fff; font-size: 17px; text-align: center; cursor: pointer; }
.loc-box .loc-box-btn:hover { background: var(--cd-primary-dark); }
.loc-box-all { display: block; margin-top: 8px; text-align: center; font-size: 15px; color: var(--cd-primary); }


/* ===================== Ticker: no dot after each headline; a little space between them instead ===================== */
.ticker-bar .scroll5-right a::after { content: none; display: none; }
.ticker-bar .scroll5-right a { margin-right: 34px !important; }
.ticker-bar .scroll5-right a i { color: var(--cd-primary); font-size: .9em; margin-right: 2px; }
.ticker-bar .scroll5-right a img { width: 18px; height: 18px; object-fit: contain; margin-right: 4px; }

/* ===================== Archive pages (সর্বশেষ, category, tag, search, reporter) — same cards as জেলার খবর ===================== */
.ar-page .dn-hero { padding-bottom: 14px; }
.ar-chips { margin-top: 12px; }
.ar-author { margin: 4px 0 0; border: 0; padding: 0; background: none; }
.ar-search { display: flex; gap: 8px; max-width: 520px; margin-top: 10px; }
.ar-search .form-control { font-size: 17px; border-radius: 8px; }
.ar-search button { flex: none; padding: 0 18px; border: 0; border-radius: 8px; background: var(--cd-primary); color: #fff; font-size: 16px; }
.dn-label { max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 767px) {
    .ar-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
    .ar-chips::-webkit-scrollbar { display: none; }
    .ar-chips .dn-chip { flex: none; }
}

/* ===================== Video page ===================== */
.vs-page { padding: 10px 0 40px; }
.vs-page .dn-crumb { margin-bottom: 10px; }
.vs-main { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.vs-player { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; }
.vs-player img, .vs-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vs-player.is-playing img, .vs-player.is-playing .vs-play { display: none; }
.vs-play { position: absolute; top: 50%; left: 50%; width: 78px; height: 78px; margin: -39px 0 0 -39px; border: 0; border-radius: 50%; background: var(--cd-primary); color: #fff; font-size: 34px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0, 0, 0, .45); transition: transform .2s; }
.vs-player:hover .vs-play { transform: scale(1.08); }
.vs-title { font-size: 28px; line-height: 1.4; font-weight: 700; margin: 14px 0 6px; color: #111; }
.vs-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: #666; font-size: 15px; margin-bottom: 10px; }
.vs-meta a { color: var(--cd-primary); }
.vs-description { font-size: 18px; line-height: 1.8; color: #222; margin-bottom: 12px; }
.vs-share { margin-top: 6px; }
.vs-share .share-youtube { background: #ff0000; }
.vs-heading { font-size: 22px; font-weight: 700; margin: 22px 0 12px; padding-left: 10px; border-left: 4px solid var(--cd-primary); line-height: 1.3; }
.vs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vs-card, .vs-row { display: block; color: #111 !important; text-decoration: none; }
.vs-card strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.45; margin-top: 6px; }
.vs-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #ddd; }
.vs-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vs-thumb i { position: absolute; left: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.vs-card:hover img, .vs-row:hover img { transform: scale(1.05); }
.vs-card:hover strong, .vs-row:hover strong { color: var(--cd-primary); }
.vs-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; margin-bottom: 12px; }
.vs-row strong { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 16px; line-height: 1.45; font-weight: 600; }
@media (max-width: 991px) { .vs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vs-title { font-size: 23px; } }
@media (max-width: 480px) { .vs-main { padding: 10px; } .vs-play { width: 62px; height: 62px; margin: -31px 0 0 -31px; font-size: 26px; } }

/* ===================== "অ্যাপ ডাউনলোড করুন" bar (PWA) ===================== */
.pwa-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 100000; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px;
    padding: 12px 40px 12px 12px; border-radius: 14px; background: #fff; color: #111; box-shadow: 0 10px 40px rgba(0, 0, 0, .28); border: 1px solid #eee;
    transform: translateY(140%); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.pwa-bar.is-open { transform: none; opacity: 1; }
.pwa-bar img { flex: none; width: 48px; height: 48px; border-radius: 11px; object-fit: cover; }
.pwa-bar-text { flex: 1; min-width: 0; line-height: 1.4; }
.pwa-bar-text strong { display: block; font-size: 17px; }
.pwa-bar-text span { display: block; font-size: 14px; color: #555; }
.pwa-bar-install { flex: none; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--cd-primary); color: #fff; font-size: 16px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pwa-bar-install:hover { background: var(--cd-primary-dark); }
.pwa-bar-close { position: absolute; top: 4px; right: 6px; width: 30px; height: 30px; border: 0; background: none; color: #777; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 420px) { .pwa-bar { left: 8px; right: 8px; bottom: 8px; gap: 10px; } .pwa-bar-text strong { font-size: 15.5px; } .pwa-bar-text span { font-size: 13px; } .pwa-bar-install { padding: 8px 13px; font-size: 15px; } }
@media print { .pwa-bar { display: none !important; } }

/* "নোটিফিকেশন চালু করুন" bar (same shape as the app bar) */
.pwa-bar-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--cd-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.pwa-bar-later { flex: none; padding: 9px 4px; border: 0; background: none; color: #666; font-size: 15px; cursor: pointer; white-space: nowrap; }
.pwa-bar.is-push { padding-right: 12px; }
.pwa-toast { position: fixed; left: 50%; bottom: 20px; z-index: 100001; transform: translate(-50%, 30px); padding: 10px 20px; border-radius: 999px; background: #111; color: #fff; font-size: 16px; opacity: 0;
    transition: transform .3s, opacity .3s; max-width: calc(100% - 24px); text-align: center; }
.pwa-toast.is-open { transform: translate(-50%, 0); opacity: 1; }


/* ===================== Photo gallery: whole pictures, never cut ===================== */
/* /photo_gallery and an album: columns that fill up like bricks, each picture at its own shape */
.pg-grid { column-count: 3; column-gap: 16px; }
.pg-item { display: block; position: relative; margin: 0 0 16px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: #f1f1f1; box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pg-item img { display: block; width: 100%; height: auto; transition: transform .35s; }
a.pg-item:hover img, .pg-item a:hover img { transform: scale(1.03); }
.pg-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 9px; color: #fff; font-size: 17px; line-height: 1.4; font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0)); }
.pg-item figcaption { padding: 8px 10px; font-size: 15px; line-height: 1.5; color: #333; background: #fff; }
@media (max-width: 991px) { .pg-grid { column-count: 2; column-gap: 12px; } .pg-item { margin-bottom: 12px; } }
@media (max-width: 480px) { .pg-grid { column-count: 1; } }

/* Home page slider: the picture is shown whole inside a 16:9 frame; a blurred copy of it fills the sides */
.homeGallery .photo-full { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #111; }
.homeGallery .photo-full::before { content: ""; position: absolute; inset: -30px; background: var(--photo) center / cover no-repeat; filter: blur(22px) brightness(.55); }
.homeGallery .photo-full a { position: absolute; inset: 0; display: block; }
.homeGallery .photo-full img { width: 100% !important; height: 100% !important; object-fit: contain; display: block; }
.homeGallery .photo-full .photoCaption { z-index: 2; padding: 6px 10px; }
.homeGallery button.owl-prev { transform: translate(10px, -50%) !important; }
.homeGallery button.owl-next { transform: translate(-10px, -50%) !important; }
.homeGallery1 .phtot2 img { width: 100%; height: 70px; object-fit: contain; background: #f1f1f1; }
