body { overflow-x: visible; }

#header, #content-wrapper, #footer {
    width: calc(100% - 24px);
    max-width: 940px;
}

#header, #footer {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
}

#header { padding: 12px 0 0; }
#header h1, #main-nav { position: static; margin: 0; }
#header h1 a span {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
#top-nav { display: none; }
#main-nav, #main-navcenter-bg { height: auto; }
#main-navleft-bg, #main-navright-bg { display: none; }
#main-navcenter-bg {
    float: none;
    padding: 0;
    background: #162f70;
    border-radius: 8px;
}
#main-navcenter-bg ul { display: flex; flex-wrap: wrap; justify-content: center; }
#main-navcenter-bg li { float: none; background: none; padding: 0; margin: 0; }
#main-navcenter-bg li a { float: none; padding: 14px 10px; line-height: 16px; }

#content-wrapper { margin: 12px auto; }
#content, #center-place, #foto-wrapper, #main-content { width: 100%; }
#in-content { padding: 16px; overflow-wrap: anywhere; }
#center-place { min-height: 0 !important; overflow: visible; }
#main-content { margin: 0; height: auto; overflow: visible; }
#main-content img { position: static; max-width: 100%; height: auto; }
.top-text, .top-text.abs article { position: static; width: auto; }
.top-text { padding: 4px 12px; }
.photo-banner > img { display: block; width: 100%; }
.okul-logo {
    position: static;
    transform: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    background: #fff;
}
.okul-logo a { height: auto; margin: 0; }
.okul-logo a img { width: 100%; height: auto; }

.page-head1, .page-head2, .box { box-sizing: border-box; width: 100%; margin-right: 0; }
.down-wrapper, .form-wrapper {
    position: static;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0;
}
.form-wrapper { padding: 12px; background: #f2f2f2; border-radius: 8px; }
.down-wrapper table { width: 100%; }
.down-wrapper td[width="548"] { width: auto; }
.down-wrapper iframe { display: block; width: 100%; height: clamp(240px, 55vw, 340px); }
#center-place .image-wrapper, #content-wrapper > .foto, .pin, .rulo { display: none; }

#foto-wrapper { margin-left: 0; }
.foto-left, .foto-right { float: none; width: 100%; }
.foto-left { margin-bottom: 12px; }
.leftnav-top, .leftnav-bottom, .leftnav-shadow { display: none; }
.leftnav-center { background: #233d99; border-radius: 8px; }
.kapsayici { box-sizing: border-box; width: 100%; }
#scrollbar1 { float: none; width: 100%; }
#scrollbar1 .scrollbar { display: none; }
#scrollbar1 .viewport { width: auto; height: auto !important; overflow: visible; }
#scrollbar1 .overview { position: static; }
.fotocu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 235px), 1fr));
    gap: 12px;
    padding: 12px;
}
.fotocu li { float: none; width: auto; height: auto; margin: 0; }
.fotocu .foto-wrapper, .foto-tab { position: relative; width: 100%; }
.fotocu .foto-wrapper a, .fotocu .foto-wrapper img { display: block; width: 100%; }
.fotocu .foto-wrapper img { height: auto; }
.foto-tab { box-sizing: border-box; height: auto; min-height: 44px; background-color: #eee; }
.foto-tab .red-btn { min-height: 34px; line-height: 34px; background: #ab2727; border-radius: 4px; }
.fotodetay { box-sizing: border-box; width: min(100%, 475px); height: auto; margin: 0 0 12px; }
.fotodetay img { display: block; max-width: 100%; height: auto; }
.filtre-detay { width: min(100%, 320px); margin: 0 0 12px; }
.detaytxt { max-width: 100%; }

.responsive-table { overflow-x: auto; }
.responsive-table table { min-width: 480px; }
.box img, .tablo3 img { max-width: 100%; height: auto; }
#login-form, #user-form, #account-form { width: 100%; height: auto; }
.frm-wrapper, .satir { max-width: 100%; }
.buttons1 { position: static; margin-top: 12px; }
#content input:not([type="hidden"]), #content select, #content textarea {
    box-sizing: border-box;
    max-width: 100%;
}
#content input[type="text"], #content input[type="email"], #content input[type="password"],
#content textarea, .filter select, .filtre-detay select {
    min-height: 40px;
    font-size: 16px;
}
.kredi-wrapper label { float: none; width: auto; }
.kredi-wrapper .frm2 { width: calc(25% - 6px); margin-right: 6px; }
#popupContact { box-sizing: border-box; width: 100%; left: 0; margin-left: 0; }
.popup-wrapper, .popup-wrapper img { max-width: 100%; }

#footer { justify-content: center; padding: 0 0 16px; }
#footer .footer-nav, #footer .vera, #footer .centered, #footer .copyright {
    position: static;
    float: none;
}
#footer .footer-nav.right { display: none; }
#footer .copyright { padding: 0; text-align: center; }

@media (max-width: 480px) {
    #header { flex-direction: column; }
    #main-nav { width: 100%; }
    #footer { flex-direction: column; }
    #in-content { padding: 12px; }
    .fotodetay, .filtre-detay { float: none; }
    .page-head1 h1 { margin-right: 0; }
    .box .geri, .box .btn { float: none; display: block; margin: 8px 0; }
}
