﻿.home-announcement .modal-dialog {
    width: fit-content;
    max-width: calc(100% - 24px);
    margin: 12px auto;
    min-height: calc(100% - 24px);
}

.home-announcement .modal-content {
    position: relative;
    width: auto;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .28);
}

/* Üstte ayrı bir boşluk oluşturmaz. */
.home-announcement-header {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 0;
    background: transparent;
}

.home-announcement-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #002856;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.home-announcement-close:hover {
    background: #e1e7ee;
}

.home-announcement-close:focus-visible,
.home-announcement-preference input:focus-visible {
    outline: 3px solid #2463a6;
    outline-offset: 3px;
}

.home-announcement-image {
    margin: 0;
    padding: 0;
    line-height: 0;
}

.home-announcement-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    margin: 0;
}

/* Yalnızca checkbox için alt şerit. */
.home-announcement-footer {
    padding: 12px 16px;
    border-top: 1px solid #edf0f3;
    background: #fff;
}

.home-announcement-preference {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #263746;
    font-size: 14px;
    cursor: pointer;
}

.home-announcement-preference input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #002856;
}

/* Kapatma düğmesi için fotoğrafın üstünde ayrı şerit */
.home-announcement-header {
    position: static;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 10px;
    background: #fff;
}

.home-announcement-close {
    width: 30px;
    height: 30px;
    background: #f0f3f6;
    box-shadow: none;
    font-size: 25px;
}

/* Üst şerit ve alt checkbox için ekranda yer bırak */
.home-announcement-image img {
    max-height: calc(100vh - 145px);
    max-height: calc(100dvh - 145px);
}