/* ZoomGirls modern layout refresh - grey, charcoal and red */
:root {
  --zg-charcoal: #242629;
  --zg-charcoal-2: #303338;
  --zg-grey: #f1f2f3;
  --zg-border: #dfe1e4;
  --zg-red: #d92735;
  --zg-red-dark: #b91f2b;
  --zg-text: #292c30;
  --zg-muted: #70757d;
}

html { background: var(--zg-grey); }
body {
  background: var(--zg-grey) !important;
  color: var(--zg-text) !important;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a:link, a:visited { color: var(--zg-red); }
a:hover { color: var(--zg-red-dark) !important; }

.wrapper-row { width: 100%; padding: 22px 18px; box-sizing: border-box; }
.container, .container_right, .container_inside {
  width: 100% !important; max-width: 1400px; margin-left: auto; margin-right: auto;
  box-sizing: border-box;
}
.container { background: transparent !important; }
.container_inside { background: #fff !important; border: 1px solid var(--zg-border);
  border-radius: 12px; overflow: hidden; box-shadow: 0 8px 28px rgba(25,28,32,.07); }

#header {
  width: 100% !important; height: auto !important; min-height: 112px;
  box-sizing: border-box; padding: 16px 24px 10px;
  background: var(--zg-charcoal) !important; background-image: none !important;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
}
#header .logo { float: none; width: auto; padding: 0; margin-right: auto; }
#header .logo img { display: block; width: 230px; height: auto; max-width: 100%; }
.header-ads { float: none; width: auto; padding: 0; flex: 1 1 250px; }
.header-ads h3 { float: none; margin: 0; color: #d7d9dc; font-size: 15px; font-weight: 500; }
.header_home_link { float: none; padding: 0 4px; }
.header_home_link a { color: #fff !important; font-weight: 700; }
.menu { float: none; width: 100%; margin: 4px 0 0; padding: 0; background: transparent; }
.menu ul { display: flex; flex-wrap: wrap; gap: 5px; }
.menu li { float: none; }
.menu a, .menu a:visited {
  float: none; display: block; padding: 9px 13px; border-radius: 6px;
  color: #f3f3f3 !important; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .25px; transition: background .18s ease, color .18s ease;
}
.menu a:hover { background: var(--zg-red); color: #fff !important; }
.mobile-menu { display: none; }

.header_subtab {
  width: 100% !important; height: auto !important; min-height: 90px;
  box-sizing: border-box; padding: 12px 18px; background: #e8e9eb;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.header_subtab p.banner728x90 { float: none; margin: 0; padding: 0; max-width: 100%; }
.header_subtab .banner728x90 img { display: block; width: 728px; max-width: 100%; height: auto; }
.social_bookmarking { float: none; }

.content_background {
  width: 100% !important; padding: 22px 22px 28px !important; box-sizing: border-box;
  background: #fff; display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  align-items: start; column-gap: 24px;
}
.content_background > .content {
  float: none !important; width: auto !important; min-width: 0;
  padding: 0 !important; margin: 0; background: #fff !important;
}
.content_background :is(.left-panel, .right-panel) {
  float: none !important; width: 190px !important; min-width: 0;
  box-sizing: border-box; margin: 0 !important; padding: 0 !important;
  background: #f4f5f6; border: 1px solid var(--zg-border); border-radius: 9px;
  overflow: hidden;
}
.sidebar-section { padding: 12px; border-bottom: 1px solid var(--zg-border); }
.sidebar-section:last-child { border-bottom: 0; }
.side-header2 {
  float: none !important; display: block; width: auto !important; height: auto !important;
  margin: 0 0 9px !important; padding: 0 0 8px !important;
  color: var(--zg-charcoal) !important; background: none !important;
  border-bottom: 2px solid var(--zg-red); font-size: 13px !important;
  line-height: 1.3 !important; text-transform: uppercase; letter-spacing: .5px;
  text-shadow: none !important;
}
.side-header2 span { padding: 0 !important; }
ul.side-panel { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
ul.side-panel li { display: block; margin: 0; border-bottom: 1px solid #e5e6e8; }
ul.side-panel li:last-child { border-bottom: 0; }
ul.side-panel li a {
  display: block; min-height: 0 !important; width: auto !important; padding: 7px 5px !important;
  color: #42464c !important; font-size: 13px; line-height: 1.35;
  transition: color .15s ease, padding-left .15s ease;
}
ul.side-panel li a:hover { color: var(--zg-red) !important; padding-left: 9px !important; }
.sidebar-ad { display: block; width: 160px; max-width: 100%; margin: 0 auto; text-align: center; }
.sidebar-ad img { display: block; width: 160px; max-width: 100%; height: auto; margin: 0 auto; }

.content_background h1, .ff > h3 {
  float: none; width: 100% !important; height: auto; box-sizing: border-box;
  margin: 0 0 16px !important; padding: 10px 13px !important;
  color: #fff !important; background: var(--zg-charcoal-2); border-left: 4px solid var(--zg-red);
  border-radius: 4px; font-size: 16px !important; line-height: 1.35;
  letter-spacing: .35px; text-shadow: none !important; text-transform: uppercase;
}
.content_background h1 span, .ff > h3 span { padding: 0 !important; }
.main_title {
  float: none; width: 100% !important; height: auto; min-height: 36px; box-sizing: border-box;
  margin: 0 0 12px; padding: 8px 12px; color: #fff; background: var(--zg-charcoal-2);
  border-left: 4px solid var(--zg-red); border-radius: 4px; line-height: 20px;
}

ul.wallpapers { width: 100% !important; box-sizing: border-box; }
ul.wallpapers li.wall { box-sizing: border-box; }
.thumb a, .wallpaper-thumb { border: 1px solid var(--zg-border) !important; border-radius: 5px; background: #fff; padding: 3px; }
.thumb a:hover, .wallpaper-thumb:hover { border-color: var(--zg-red) !important; box-shadow: 0 3px 12px rgba(0,0,0,.12); }

#footer {
  clear: both; width: 100% !important; box-sizing: border-box; padding: 20px 24px !important;
  color: #c9cbd0; background: var(--zg-charcoal); border-top: 3px solid var(--zg-red);
}
#footer a { color: #fff !important; }
#footer a:hover { color: #ff6872 !important; }
#footer .footer_right { color: #b9bdc3; }

@media (max-width: 900px) {
  .wrapper-row { padding: 12px; }
  .content_background { padding: 16px !important; grid-template-columns: minmax(0, 1fr) 180px; column-gap: 16px; }
  .content_background :is(.left-panel, .right-panel) { width: 180px !important; }
  .sidebar-section { padding: 10px; }
  #header { padding: 14px 16px 10px; }
}
@media (max-width: 680px) {
  .wrapper-row { padding: 0; }
  .container_inside { border: 0; border-radius: 0; }
  #header { display: block; padding: 14px 14px 10px; text-align: center; }
  #header .logo { display: inline-block; margin: 0 auto 8px; }
  #header .logo img { width: 210px; margin: 0 auto; }
  .header-ads { display: none; }
  .header_home_link { display: none; }
  .mobile-menu { display: block !important; float: none; width: 100%; height: auto; margin: 8px 0 0; padding: 8px;
    box-sizing: border-box; background: var(--zg-red) !important; border-radius: 5px; }
  .mobile-menu .nav-toggle { color: #fff !important; font-size: 14px; font-weight: 700; text-transform: uppercase; }
  .menu { display: none; width: 100%; margin-top: 8px; }
  .menu.action { display: block; }
  .menu ul { display: block; }
  .menu li { display: block; border-top: 1px solid rgba(255,255,255,.1); }
  .menu a, .menu a:visited { padding: 10px; text-align: left; }
  .header_subtab { min-height: 0; padding: 9px; }
  .header_subtab .banner728x90 img { width: 100%; height: auto; }
  .content_background { display: flex; flex-direction: column; gap: 18px; padding: 14px !important; }
  .content_background > .content { width: 100% !important; order: 1; }
  .content_background :is(.left-panel, .right-panel) { width: 100% !important; order: 2; }
  .sidebar-section { padding: 12px; }
  .sidebar-ad img { width: 160px; }
  #footer { padding: 18px 14px !important; }
}
.content_background > .reset,
.content_background > br.reset { display: none !important; }
.content_background > .reset,
.content_background > br.reset { display: none !important; }

/* V2: neutral dark surfaces and readable legacy components */
:root { --zg-charcoal:#202020; --zg-charcoal-2:#303030; --zg-grey:#242424; --zg-border:#484848; --zg-red:#c92538; --zg-red-dark:#a91c2c; --zg-text:#f2f2f2; --zg-muted:#bdbdbd; }
html, body { background:#242424 !important; color:#f2f2f2 !important; }
.container_inside, .content_background, .content_background > .content, #content { background:#292929 !important; color:#f2f2f2 !important; }
.header_subtab { background:#303030 !important; }
.content_background { grid-template-columns:minmax(0,1fr) 250px; }
.content_background :is(.left-panel, .right-panel) { width:250px !important; background:#303030 !important; border-color:#484848; }
.sidebar-section { border-color:#484848; }
:is(.left-panel, .right-panel) .side-header, :is(.left-panel, .right-panel) .side-header2 { float:none !important; width:100% !important; box-sizing:border-box; height:auto !important; padding:10px 12px !important; margin:0 !important; background:#383838 !important; color:#fff !important; border:0; border-left:3px solid #c92538; text-shadow:none !important; font-size:15px !important; }
:is(.left-panel, .right-panel) .side-header span, :is(.left-panel, .right-panel) .side-header2 span { color:#fff !important; padding:0 !important; }
:is(.left-panel, .right-panel) ul.side-panel, :is(.left-panel, .right-panel) ul.side-panel li { background:#303030 !important; color:#e5e5e5 !important; list-style:none !important; border-color:#484848 !important; }
:is(.left-panel, .right-panel) ul.side-panel li a, :is(.left-panel, .right-panel) ul.side-panel li a:visited { color:#e5e5e5 !important; font-size:14px; padding:10px 12px !important; }
:is(.left-panel, .right-panel) ul.side-panel li a:hover { background:#404040 !important; color:#ff8792 !important; }
:is(.left-panel, .right-panel) form { padding:10px !important; box-sizing:border-box; width:100% !important; color:#eee !important; }
:is(.left-panel, .right-panel) input.input-text, :is(.left-panel, .right-panel) input[name=q] { background:#202020 !important; color:#fff !important; border:1px solid #666 !important; border-radius:5px; padding:8px !important; width:100% !important; box-sizing:border-box; }
:is(.left-panel, .right-panel) input.button, :is(.left-panel, .right-panel) input[type=submit] { background:#b91f30 !important; color:#fff !important; border:0 !important; border-radius:5px; padding:8px 14px !important; margin:6px 0 !important; cursor:pointer; }


#content ul.wallpapers li.wall .item_title, #content ul.wallpapers li.wall .item_title a { color:#f0f0f0 !important; font-size:13px !important; text-shadow:none !important; }
#content ul.wallpapers li.wall .item_title a:hover { color:#ff8792 !important; }
#content .thumb a { background:#333 !important; border-color:#555 !important; }
#content .thumb_img { border-color:#555 !important; }
#content a:not(.icon-space) { color:#e9e9e9; }
#content a:hover { color:#ff8792 !important; }
#content h1, #content h2, #content h3 { text-shadow:none !important; }
.pagination a, .pagination span { color:#eee !important; border-color:#555 !important; }
.pagination span.selected { background:#b91f30 !important; }
@media(max-width:900px) { .content_background { grid-template-columns:minmax(0,1fr) 210px; } .content_background :is(.left-panel, .right-panel) { width:210px !important; } }
@media(max-width:680px) { .content_background :is(.left-panel, .right-panel) { width:100% !important; } }

/* Gallery: one layout, native T2 dimensions, no card backgrounds. */
#content ul.wallpapers {
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,270px));
  justify-content:center;
  align-items:start;
  gap:18px 12px;
  float:none; width:100% !important;
  padding:0 !important; margin:0 0 18px;
  background:transparent !important;
}
#content ul.wallpapers::before, #content ul.wallpapers::after { display:none !important; }
#content ul.wallpapers > li.wall {
  display:block; float:none !important; clear:none !important;
  width:100% !important; min-width:0; height:auto !important;
  margin:0 !important; padding:0 !important;
  background:transparent !important; border:0; box-shadow:none;
}
#content ul.wallpapers .thumb { float:none; width:100%; height:auto; }
#content ul.wallpapers .thumb > a {
  display:block; float:none !important; padding:0 !important; margin:0;
  border:0 !important; background:transparent !important; box-shadow:none;
}
#content ul.wallpapers li.wall .thumb_img {
  display:block; width:100% !important; max-width:270px !important;
  height:auto !important; aspect-ratio:270 / 203; object-fit:contain;
  border:0 !important; padding:0; margin:0 auto;
}
#content ul.wallpapers .item_title {
  float:none !important; width:100% !important; text-align:center;
  margin:6px 0 0; line-height:20px; overflow:hidden;
}
#content ul.wallpapers .item_title a {
  display:block; float:none !important; overflow:hidden;
  white-space:nowrap; text-overflow:ellipsis;
}
#content ul.wallpapers .item-actions { text-align:center; }
#content ul.wallpapers .item-actions:empty { display:none; }
#content ul.wallpapers > :not(.wall) { grid-column:1 / -1; max-width:100%; box-sizing:border-box; }
#content ul.wallpapers > .reset { display:none !important; }
@media(max-width:900px) {
  #content ul.wallpapers { grid-template-columns:repeat(2,minmax(0,270px)); }
}
/* Modern wallpaper hover effect */

#content ul.wallpapers li.wall {
    position: relative;
    border-radius: 6px;
    transition: background-color 0.25s ease,
                transform 0.25s ease,
                box-shadow 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {

    #content ul.wallpapers li.wall:hover {
        background-color: #404040 !important;
        transform: translateY(-3px);
        box-shadow: 0 0 0 2px #c92538,
                    0 6px 16px rgba(0,0,0,0.3) !important;
        z-index: 2;
    }

    #content ul.wallpapers li.wall:hover .item_title a {
        color: #ff6575 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #content ul.wallpapers li.wall {
        transition: none;
        transform: none !important;
    }
}
#content ul.wallpapers li.wall .thumb,
#content ul.wallpapers li.wall .thumb > a {
    border-radius: 6px;
    overflow: hidden;
}

#content ul.wallpapers li.wall .thumb_img {
    border-radius: 6px;
    display: block;
}
/* Three-column layout: content stays first in HTML. */
.content_background {
  display: grid !important;
  grid-template-columns: 200px minmax(0, 1fr) 220px;
  grid-template-areas: "left content right";
  gap: 16px;
  padding: 18px !important;
}
.content_background > .content { grid-area: content; min-width: 0; }
.content_background > .left-panel { grid-area: left; }
.content_background > .right-panel { grid-area: right; }
.content_background > :is(.left-panel, .right-panel) {
  width: 100% !important; min-width: 0; float: none !important;
  height: auto !important; align-self: start;
}
#content ul.wallpapers { grid-template-columns: repeat(3, minmax(0, 270px)); }
@media (max-width: 1199px) {
  .content_background {
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-areas: "content right" "left right";
  }
}
@media (max-width: 900px) {
  #content ul.wallpapers { grid-template-columns: repeat(2, minmax(0, 270px)); }
}
@media (max-width: 767px) {
  .content_background {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "right" "left";
    padding: 14px !important;
  }
}
/* Modern sidebar section headers */

.content_background :is(.left-panel, .right-panel)
:is(.side-header, .side-header2) {
    position: relative;
    box-sizing: border-box;
    width: 100% !important;
    padding: 13px 14px 16px !important;
    margin: 0 0 8px !important;

    background: linear-gradient(
        135deg, #48484b 0%, #29292d 100%
    ) !important;

    border: 1px solid #505054 !important;
    border-radius: 7px !important;

    color: #f5f5f5 !important;
    font-size: 15px !important;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    text-shadow: none !important;

    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Red decorative accent */

.content_background :is(.left-panel, .right-panel)
:is(.side-header, .side-header2)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 36px;
    height: 3px;
    background: linear-gradient(
        90deg, #c92538, #ff6575
    );
    border-radius: 3px;
}

/* Header text */

.content_background :is(.left-panel, .right-panel)
:is(.side-header, .side-header2) span {
    color: #f5f5f5 !important;
    padding: 0 !important;
}