/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2015 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/themes/water_drop/style.css $
  $Revision: 8830 $
**********************************************/

/* Colors used:                                */
/* --------------------------------------------*/
/* Hex 000000 = RGB   0,  0,  0 = black        */
/* Hex 5F5F5F = RGB  95, 95, 95 = light black  */
/* Hex BDBEBD = RGB 189,190,189 = dark grey    */
/* Hex D1D7DC = RGB 209,215,220 = medium grey  */
/* Hex CCD7E0 = RGB 204,215,224 = light grey   */
/* Hex DDDDDD = RGB 221,221,221 = light grey   */
/* Hex CBD7DE = RGB 203,215,222 = steel grey   */
/* Hex F2F5F7 = RGB 242,245,247 = dark white   */
/* Hex EFEFEF = RGB 239,239,239 = dark white   */
/* Hex FFFFFF = RGB 255,255,255 = white        */
/* Hex 000666 = RGB   0,  6,102 = dark blue    */
/* Hex 0033CC = RBG   0, 91,104 = medium blue  */
/* Hex 718EA5 = RGB 113,142,165 = light blue   */
/* Hex 8AA5B5 = RGB 138,165,181 = light blue   */
/* #00529B = RGB   0, 82,155 = blue            */
/* #BDE5F8 = RGB 189,229,247 = cyan            */
/* #4F8A10 = RGB  79,138, 16 = dark green      */
/* #DFF2BF = RGB 223,242,191 = light green     */
/* #9F6000 = RGB 159, 96,  0 = dark brown      */
/* #FEEFB3 = RGB 254,239,179 = light brown     */
/* #D8000C = RGB 216,  0, 12 = red             */
/* #FFBABA = RGB 255,186,186 = pink            */
/* #D63301 = RGB 214, 51,  1 = red             */
/* #FFCCBA = RGB 255,204,186 = pink            */
/* if you don't like a color, just do a search */
/* and replace on the hex color...             */

body {
    background: url("images/bg.gif");
    background-color: #F2F5F7;
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size : 12px;
    color: #000666;
    margin: 0px;
}

table {
    font-size : 12px;
}

h1{
    font-weight: normal;
    font-size: 21px;
    font-family: "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
    text-decoration: none;
    line-height : 120%;
    color: #718EA5;
    margin: 2px;
}

h2 {
    font-family: Arial, Helvetica, sans-serif;
    background-image : url(images/box_left_icon.gif);
    background-repeat : no-repeat;
    background-position : left;
    padding-left : 18px;
    font-size: 18px;
    margin: 0px;
}

h3 {
    font-weight: normal;
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size: 12px;
    margin: 2px;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 100%;
    margin: 2px 0px;
}

pre.filepath {
    margin: 0px;
    padding: 0px;
}

ul, ol {
    margin-left: 5px;
    margin-top:0px;
    margin-bottom:0px;
    padding: 0px;
}

li {
    margin-left: 10px;
    margin-top: 4px;
    margin-bottom: 4px;
    padding: 0px;
    list-style-position: outside;
}

ul li {
    list-style-type: disc;
}

.textinput {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size: 100%;
    border: 1px solid #D1D7DC;
    padding-right: 3px;
    padding-left: 3px;
}

.listbox {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size: 100%;
    border: 1px solid #D1D7DC;
    vertical-align : middle;
}

.button, .buttonlist ul li a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 90%;
    border: 1px solid #CCD7E0;
    background-image : url(images/button_bg.gif);
    background-position : bottom;
    cursor:pointer;
    padding-left:0px;
    padding-right:0px;
    margin-right:2px;
    white-space: nowrap;
}

.radio {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size: 100%;
    vertical-align : middle;
}

.checkbox {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    font-size: 100%;
    vertical-align : middle;
}

a {
    color: #0033CC;
    text-decoration: none;
}

a:hover {
    color: #0033CC;
    text-decoration: underline;
}

.bblink a {
    color: #0033CC;
    text-decoration: none;
}

.bblink a:hover {
    color: #0033CC;
    text-decoration: underline;
}

.maintable {
    border: 1px solid #CCD7E0;
    background-color: #FFFFFF;
    margin-top: 1px;
    margin-bottom: 1px;
}

.tableh1 {
    font-family:  Verdana, Geneva, Arial, sans-serif;
    background : #8AA5B5 ;
    color: #FFFFFF;
    font-weight:bold;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

.tableh2 {
    background: #CBD7DE ;
    color : #000000;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

.tableb {
    background: #F2F5F7 ;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

/* This class will be used in conjunction with class tableb: attributes not particularly (re)-assigned will be taken into account from tableb. */
/* It is being used to accomplish alternating row colors for lists. */
/* It's recommended to only assign another background color that slightly differs from the one defined in tableb */
.tableb_alternate {
    background: #DDDDDD;
}

.tablef {
    background: #CBD7DE ;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
}

.catrow_noalb {
    background: #CBD7DE ;
    color : #000000;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

.catrow {
    background: #F2F5F7 ;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

.album_stat {
    font-size : 85%;
    margin: 5px 0px;
}

.thumb_filename {
    font-size: 80%;
    display: block;
}

.thumb_title {
    font-weight : bold;
    font-size: 80%;
    padding: 2px;
    display : block;
}

.thumb_caption {
    font-size: 80%;
    padding: 1px;
    display : block;
}

.thumb_caption a {
    text-decoration: underline;
    color: #000000;
}


.thumb_num_comments {
    font-weight: normal;
    font-size: 85%;
    padding: 2px;
    font-style : italic;
    display : block;
}

.user_thumb_infobox {
    margin-top: 1px;
    margin-bottom: 1px;
}

.user_thumb_infobox th {
    font-weight : bold;
    font-size: 100%;
    margin-top: 1px;
    margin-bottom: 1px;
    text-align : center;
}

.user_thumb_infobox td {
    font-size: 85%;
    margin-top: 1px;
    margin-bottom: 1px;
    text-align : center;
}

.user_thumb_infobox a {
    text-decoration: none;
    color: #000000;
}

.user_thumb_infobox a:hover {
    color: #000000;
    text-decoration: underline;
}

.sortorder_cell {
    background : #8AA5B5 ;
    color: #FFFFFF;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 20px;
    margin: 0px;
}

.sortorder_options {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background : #8AA5B5 ;
    color: #FFFFFF;
    padding: 0px;
    margin: 0px;
    font-weight: normal;
    font-size: 80%;
    white-space: nowrap;
}

.navmenu {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    color: #FFFFFF;
    font-weight: bold;
    background : #8AA5B5 ;
    border-style: none;
}

.navmenu img {
    margin-top: 1px;
    margin-right: 5px;
    margin-bottom: 1px;
    margin-left: 5px;
}

.navmenu a {
    display: block;
    padding-top: 2px;
    padding-right: 5px;
    padding-bottom: 2px;
    padding-left: 5px;
    text-decoration: none;
    color: #FFFFFF;
}

.navmenu a:hover {
    background : #F2F5F7 ;
    text-decoration: none;
    color:         #000000;
}

.admin_menu {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 90%;
    border: 1px solid #CCD7E0;
    background-image : url(images/button_bg.gif);
    background-position : bottom;
    background-repeat: repeat-x;
    background-color: #FFFFFF;
    color: #000000;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: center;
}

.admin_menu a {
    color: #000000;
    text-decoration: none;
    padding-top: 1px;
    padding-bottom: 1px;
    padding-left: 2px;
    padding-right: 2px;
}

.admin_menu a:hover {
    color: #000000;
    text-decoration: underline;
}

.admin_float {
    float:left;
    margin-left: 1px;
    margin-right: 1px;
    margin-top: 1px;
    margin-bottom: 1px;
    max-height:1.5em;
    display: block;
    position: relative;
    white-space:nowrap;
    /*width:100px;*/
}

#admin_menu_anim {
    background-image : url(images/button_bg_anim.gif);
}

.icon {
    vertical-align:middle;
    margin-right:1px;
}

.comment_date{
    color : #5F5F5F;
    font-size: 90%;
    vertical-align : middle;
}

.image {
    border-style: solid;
    border-width:1px;
    border-color: #000000;
    margin: 2px;
}

/* pseudo-classes for image links */
a:link .image{
    border-style: solid;
    border-width:1px;
    border-color: #000000;
    margin: 2px;
}

a:visited .image{
    border-style: solid;
    border-width:1px;
    border-color: #8CA6B5;
    margin: 2px;
}

a:focus .image{
    border-style: solid;
    border-width:1px;
    border-color: #000000;
    margin: 2px;
}

a:hover .image{
    border-style: solid;
    border-width:1px;
    border-color: #0033CC;
    margin: 2px;
}

a:active .image{
    border-style: solid;
    border-width:1px;
    border-color: #000000;
    margin: 2px;
}

/* pseudo-classes for middlethumb links */
a:link .middlethumb,a:visited .middlethumb,a:focus .middlethumb,a:hover .middlethumb,a:active .middlethumb{
    border: 4px solid #CBD7DE;
}

.imageborder {
    border: 1px solid #000000;
    background-color: #FFFFFF;
    margin-top: 3px;
    margin-bottom: 3px;
}

.display_media {
    background: #F2F5F7 ;
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
}

.thumbnails {
    background: #F2F5F7 ;
    padding: 5px;
}

.footer {
    font-size : 9px;
}

.footer a {
    text-decoration: none;
    color: #000000;
}

.footer a:hover {
    color: #000000;
    text-decoration: underline;
}

.statlink {
    color: #FFFFFF;
}

.statlink a {
    text-decoration: none;
    color: #FFFFFF;
}

.statlink a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.alblink {
    font-weight:bold;
}

.alblink a {
    text-decoration: underline;
    color: #000000;
}

.alblink a:hover {
    color: #000000;
    text-decoration: underline;
}

.catlink {
    display: block;
    margin-bottom: 2px;
    font-weight:bold;
}

.catlink a {
    text-decoration: underline;
    color: #000000;
}

.catlink a:hover {
    color: #000000;
    text-decoration: underline;
}

.topmenu {
    font-family: "Trebuchet MS", Verdana, Geneva, Arial, sans-serif;
    line-height : 130%;
    font-size : 110%;
}

.topmenu a {
    color : #0033CC;
    text-decoration : none;
}

.topmenu a:hover  {
    color : #0033CC;
    text-decoration : underline;
}

.img_caption_table {
    border: none;
    background-color: #FFFFFF;
    width : 100%;
    margin : 0px;
}

.img_caption_table th {
    background: #D1D7DC ;
    font-size : 100%;
    color : #000000;
    padding-top: 4px;
    padding-right: 10px;
    padding-bottom: 4px;
    padding-left: 10px;
    border-top : 1px solid #FFFFFF;
}

.img_caption_table td {
    background: #F2F5F7 ;
    padding-top: 6px;
    padding-right: 10px;
    padding-bottom: 6px;
    padding-left: 10px;
    border-top : 1px solid #FFFFFF;
    white-space: normal;
}

.debug_text {
    border: #BDBEBD;
    background-color: #EFEFEF;
    width : 100%;
    margin : 0px;
}

.clickable_option {
    cursor : default;

}

.listbox_lang {
    color: #000666;
    background-color: #F2F5F7;
    border: 1px solid #D1D7DC;
    font-size: 80%;
    font-family: Arial, Helvetica, sans-serif;
    vertical-align : middle;
}

.pic_title {
    color: #000666;
    font-size: 100%;
    font-weight:bold;
    text-align : center;
    padding-top:0px;
    padding-bottom:0px;
    margin-top:0px;
    margin-bottom:0px;
    line-height:1.0em;
}

.pic_caption {
    color: #000666;
    font-size: 100%;
    font-weight:normal;
    text-align : center;
    padding-top:0px;
    padding-bottom:0px;
    margin-top:0px;
    margin-bottom:0px;
    line-height:1.0em;
    background-image:none;
}

.important {
    /* background-image : url(images/important.gif); */
    color: red;
    font-weight: bold;
    padding-left:1px;
    padding-right:1px;
    padding-top:3px;
    padding-bottom:3px;
}

#cpgChooseLanguageWrapper {
    float:left;
}

#cpgChooseThemeWrapper {
    float:left;
}

.filmstrip_background {
    background-color:#000000;
}

.prev_strip {
    text-align: left;
}

.next_strip{
    text-align: right;
}

/** Swfupload css **/
div.fieldset {
    border:  2px solid #0E72A4;
    margin: 10px 0;
    padding: 20px 10px;
}

div.fieldset span.legend {
    position: relative;
    padding: 3px;
    top: -30px;
    background-color: #8AA5B5;
    color: #FFF;
    font-weight: bold;
}

div.flash {
    width: 375px;
    margin: 10px 5px;
    border-color: #CCD7E0;
}

input[disabled]{ border: 1px solid #ccc } /* FF 2 Fix */


.progressWrapper {
    width: 357px;
    overflow: hidden;
}

.progressContainer {
    margin: 5px;
    padding: 4px;
    border: solid 1px #E8E8E8;
    background-color: #F7F7F7;
    overflow: hidden;
}
/* Message */
.message {
    margin: 1em 0;
    padding: 10px 20px;
    border: solid 1px #FFDD99;
    background-color: #FFFFCC;
    overflow: hidden;
}
/* Error */
.red {
    border: solid 1px #B50000;
    background-color: #FFEBEB;
}

/* Current */
.green {
    border: solid 1px #DDF0DD;
    background-color: #EBFFEB;
}

/* Complete */
.blue {
    border: solid 1px #CEE2F2;
    background-color: #F0F5FF;
}

.progressName {
    font-size: 8pt;
    font-weight: 700;
    color: #555;
    width: 323px;
    height: 14px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
}

.progressBarInProgress,
.progressBarComplete,
.progressBarError {
    font-size: 0;
    width: 0%;
    height: 2px;
    background-color: blue;
    margin-top: 2px;
}

.progressBarComplete {
    width: 100%;
    background-color: green;
    visibility: hidden;
}

.progressBarError {
    width: 100%;
    background-color: red;
    visibility: hidden;
}

.progressBarStatus {
    margin-top: 2px;
    width: 337px;
    font-size: 7pt;
    font-family: Arial;
    text-align: left;
    white-space: nowrap;
    color: #555;
}

a.progressCancel {
    font-size: 0;
    display: block;
    height: 14px;
    width: 14px;
    background-image: url(../../images/cancelbutton.gif);
    background-repeat: no-repeat;
    background-position: -14px 0px;
    float: right;
}

a.progressCancel:hover {
    background-position: 0px 0px;
}

.swfupload {
    vertical-align: top;
}

/**styles for photo manager*/
table#pic_sort tr td {
    padding: 4px;
    border-bottom: 1px solid #ccc;
}

/** styles for album manager and photo album*/
table#album_sort tr td {
    padding: 3px;
    border-bottom: 1px solid #ccc;
}

table#album_sort tr td span.editAlbum {
    margin-left: 100px;
    font-size: 10px;
    line-height: 100%;
    text-decoration: underline;
    cursor: pointer;
    display: none;
    color: #FF0000;
}

.cpg_message_info, .cpg_message_success, .cpg_message_warning, .cpg_message_error, .cpg_message_validation {
    border: 1px solid;
    margin: 10px 0px;
    padding:15px 10px 15px 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
}
.cpg_message_info {
    color: #00529B;
    background-color: #BDE5F8;
    background-image: url('../../images/message/info.png');
}
.cpg_message_success {
    color: #4F8A10;
    background-color: #DFF2BF;
    background-image: url('../../images/message/ok.png');
}
.cpg_message_warning {
    color: #9F6000;
    background-color: #FEEFB3;
    background-image: url('../../images/message/warning.png');
}
.cpg_message_error {
    color: #D8000C;
    background-color: #FFBABA;
    background-image: url('../../images/message/stop.png');
}
.cpg_message_validation {
    color: #D63301;
    background-color: #FFCCBA;
    background-image: url('../../images/message/error.png');
}

.cpg_summary {
    font-size:0.9em;
	border: 1px solid;
    margin: 10px 0px;
	padding:5px 10px 5px 10px;
    color: #FF2B9C;
    background-color: #FFDEEF;
	text-align:right;
	float:right;
	width:400px;
}

#GB_window {
    background-color: #F2F5F7;
    border: 5px solid #CCD7E0;
}

.external {
    background: transparent url('../../images/link.gif') 100% 50% no-repeat;
    padding-right: 10px;
}

.detail_head_collapsed, .detail_head_expanded {
    color: #0033CC;
}
/****************************************************
  Responsive retrofit for the legacy water_drop theme
  Keeps all Coppermine URLs untouched and only changes layout.
*****************************************************/

html {
    width: 100%;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img, video, object, embed, iframe {
    max-width: 100%;
}

img {
    height: auto;
}

input, select, textarea, button {
    max-width: 100%;
}

.cpg-page-wrap {
    width: 100%;
    padding: 20px;
}

.cpg-layout-shell {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    border: 1px solid #CCD7E0;
    background-color: #FFFFFF;
    padding: 18px;
}

.cpg-site-header {
    text-align: center;
    overflow-wrap: anywhere;
}

.cpg-site-header h1,
.cpg-site-header h3 {
    max-width: 100%;
}

.cpg-main-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 8px;
}

.cpg-main-menu br,
.cpg-main-menu img[src$="orange_carret.gif"] {
    display: none;
}

.cpg-main-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #CCD7E0;
    background: #F2F5F7;
    border-radius: 4px;
    line-height: 1.25;
}

.cpg-main-menu a:hover {
    background: #E8EFF4;
    text-decoration: none;
}

.cpg-gallery-content {
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
}

.cpg-gallery-content table,
#ukrelba table {
    max-width: 100%;
}

.maintable {
    width: 100% !important;
    max-width: 100%;
}

.tableh1, .tableh2, .tableb, .tablef,
.catrow, .catrow_noalb,
.display_media, .thumbnails {
    overflow-wrap: anywhere;
}

.imageborder,
.display_media img,
.albums img,
.thumbLink img,
#film img {
    max-width: 100% !important;
    height: auto !important;
}

/* Keep album/category thumbnails visible in legacy table cells.
   A global max-width:100% on thumbnail images can make old table
   layouts calculate the thumbnail column as almost zero width. */
.cpg-gallery-content td.thumbnails {
    min-width: 104px;
    text-align: center;
}

.cpg-gallery-content td.thumbnails img.image,
.cpg-gallery-content td.thumbnails a img.image {
    max-width: none !important;
    width: auto;
    height: auto !important;
}

.display_media {
    white-space: normal !important;
    padding: 10px;
    overflow: hidden;
}

.display_media table {
    width: 100% !important;
}

.navmenu a {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#film {
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tape {
    width: auto !important;
}

.filmstrip_background .thumbnails,
.filmstrip_background {
    max-width: 100%;
}

.admin_float,
.admin_menu {
    white-space: normal;
}

.admin_menu {
    line-height: 1.35;
}

.buttonlist ul,
.buttonlist li {
    max-width: 100%;
}

.img_caption_table,
.user_thumb_infobox,
.debug_text {
    width: 100% !important;
}

.cpg_summary {
    float: none;
    width: auto;
    max-width: 100%;
    text-align: left;
}

#ukrelba {
    width: 100%;
    padding: 0 20px 20px;
    text-align: left;
}

.ukrelba-footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.35fr) minmax(220px, 1.5fr) minmax(220px, 1fr) minmax(150px, 0.7fr);
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid #CCD7E0;
    background: #FFFFFF;
}

.ukrelba-footer-col {
    min-width: 0;
}

.ukrelba-footer-col span,
.ukrelba-footer-col strong {
    display: block;
    margin-bottom: 4px;
}

.ukrelba-footer-copy {
    max-width: 1180px;
    margin: 8px auto 0;
    display: flex;
    justify-content: center;
    gap: 8px 14px;
    flex-wrap: wrap;
    text-align: center;
}

@media (max-width: 900px) {
    .cpg-page-wrap {
        padding: 12px;
    }

    .cpg-layout-shell {
        padding: 12px;
    }

    .ukrelba-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ukrelba-footer-col:first-child {
        display: none;
    }
}

@media (max-width: 700px) {
    body {
        font-size: 14px;
    }

    table {
        font-size: 13px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    .cpg-page-wrap {
        padding: 8px;
    }

    .cpg-layout-shell {
        padding: 10px;
    }

    .cpg-main-menu {
        align-items: stretch;
        gap: 6px;
    }

    .cpg-main-menu a {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
        min-width: 130px;
    }

    .cpg-gallery-content > .maintable,
    .cpg-gallery-content > form > .maintable {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Thumbnail and album rows: turn old table rows into wrapping card grids. */
    .cpg-gallery-content .maintable > tbody > tr,
    .cpg-gallery-content .maintable > tr {
        max-width: 100%;
    }

    .cpg-gallery-content .maintable tr:has(> td.thumbnails),
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        width: 100%;
    }

    .cpg-gallery-content .maintable tr:has(> td.thumbnails) > td.thumbnails {
        flex: 1 1 50%;
        width: 50% !important;
        min-width: 150px;
        display: block;
        padding: 6px;
    }

    .cpg-gallery-content td.thumbnails img.image,
    .cpg-gallery-content td.thumbnails a img.image {
        max-width: 100% !important;
        width: auto;
        height: auto !important;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] {
        flex: 1 1 100%;
        width: 100% !important;
        display: block;
        margin-bottom: 8px;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table {
        width: 100% !important;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3),
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) {
        display: flex;
        flex-wrap: wrap;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3) > td,
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) > td {
        display: block;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3) > td.thumbnails,
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) > td.thumbnails {
        flex: 0 0 140px;
        max-width: 40%;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3) > td.tableb,
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) > td.tableb {
        flex: 1 1 180px;
    }

    .cpg-gallery-content .maintable tr:has(> td .navmenu),
    .cpg-gallery-content .maintable tr:has(> td.navmenu) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cpg-gallery-content .maintable tr:has(> td .navmenu) > td,
    .cpg-gallery-content .maintable tr:has(> td.navmenu) > td.navmenu {
        width: auto !important;
        flex: 0 0 auto;
    }

    .display_media {
        padding: 6px;
    }

    .display_media img {
        width: auto !important;
        max-height: none !important;
    }

    .pic_title {
        font-size: 16px;
        line-height: 1.25;
    }

    .pic_caption {
        font-size: 14px;
        line-height: 1.35;
    }

    .img_caption_table th,
    .img_caption_table td,
    .tableh1, .tableh2, .tableb, .tablef {
        padding-left: 7px;
        padding-right: 7px;
    }

    .sortorder_cell {
        padding-right: 7px;
        white-space: normal;
    }

    .sortorder_options {
        white-space: normal;
    }

    div.flash,
    .progressWrapper,
    .progressName,
    .progressBarStatus {
        width: 100%;
    }

    #ukrelba {
        padding: 0 8px 12px;
    }

    .ukrelba-footer-inner {
        grid-template-columns: 1fr;
        padding: 12px;
    }
}

@media (max-width: 420px) {
    .cpg-main-menu a {
        flex-basis: 100%;
        min-width: 0;
    }

    .cpg-gallery-content .maintable tr:has(> td.thumbnails) > td.thumbnails {
        flex-basis: 100%;
        width: 100% !important;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3) > td.thumbnails,
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) > td.thumbnails {
        flex-basis: 100%;
        max-width: 100%;
    }

    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(3) > td.tableb,
    .cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(3) > td.tableb {
        flex-basis: 100%;
    }
}

/* Responsive follow-up: keep legacy album/category thumbnails close to
   their captions. The old Coppermine table cells are as high as the
   neighboring description cell; vertical middle alignment creates a large
   empty light block above thumbnails on desktop. */
.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.thumbnails {
    vertical-align: top !important;
    background: #DDDDDD;
    padding-top: 6px;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.thumbnails img[src$="spacer.gif"] {
    display: none;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.thumbnails a.albums {
    display: inline-block;
    margin-top: 0;
}

/* Responsive follow-up: remove the legacy one-pixel spacer row that sits
   between album title bars and thumbnails. It was useful in the old fixed
   table layout, but on the responsive layout it becomes a visible empty band. */
.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tbody > tr:nth-child(2),
.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table > tr:nth-child(2) {
    display: none !important;
}

/****************************************************
  Modern visual refresh for ukrelba.com
  Pure CSS layer: keeps Coppermine tables and all old URLs intact.
*****************************************************/

:root {
    --ukr-bg: #eef5f9;
    --ukr-surface: #ffffff;
    --ukr-surface-soft: #f6f9fc;
    --ukr-border: #d7e3ec;
    --ukr-border-strong: #b9ccd9;
    --ukr-text: #172033;
    --ukr-muted: #607287;
    --ukr-blue: #1f6fb2;
    --ukr-blue-dark: #15598f;
    --ukr-blue-soft: #e8f3fb;
    --ukr-accent: #f2a23a;
    --ukr-shadow-sm: 0 4px 14px rgba(23, 32, 51, 0.07);
    --ukr-shadow-md: 0 14px 36px rgba(23, 32, 51, 0.12);
    --ukr-radius-sm: 8px;
    --ukr-radius-md: 14px;
    --ukr-radius-lg: 22px;
}

body {
    background:
        radial-gradient(circle at 10% -10%, rgba(31, 111, 178, 0.16), transparent 34%),
        radial-gradient(circle at 100% 0%, rgba(242, 162, 58, 0.13), transparent 28%),
        linear-gradient(180deg, #f8fbfd 0%, var(--ukr-bg) 48%, #e7f0f6 100%) !important;
    color: var(--ukr-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
}

table,
input,
select,
textarea,
button {
    font-family: inherit;
}

table {
    font-size: 14px;
}

a {
    color: var(--ukr-blue);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a:hover {
    color: var(--ukr-blue-dark);
    text-decoration: none;
}

p {
    margin: 0 0 8px;
    line-height: 1.55;
}

h1, h2, h3 {
    color: var(--ukr-text);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.05;
}

h2 {
    background-image: none;
    padding-left: 0;
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 750;
}

h3 {
    font-size: 15px;
    line-height: 1.45;
}

.cpg-page-wrap {
    padding: 28px 18px;
}

.cpg-layout-shell {
    max-width: 1200px;
    border: 0;
    border-radius: var(--ukr-radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--ukr-shadow-md);
    padding: 18px;
    backdrop-filter: blur(8px);
}

.cpg-site-header {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--ukr-radius-lg) - 4px);
    padding: clamp(22px, 4vw, 38px) 18px 20px;
    background:
        linear-gradient(135deg, rgba(21, 89, 143, 0.95), rgba(31, 111, 178, 0.92)),
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.22), transparent 26%);
    color: #ffffff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.14);
}

.cpg-site-header::before,
.cpg-site-header::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.cpg-site-header::before {
    width: 240px;
    height: 240px;
    left: -90px;
    top: -110px;
    background: rgba(255, 255, 255, 0.12);
}

.cpg-site-header::after {
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -80px;
    background: rgba(242, 162, 58, 0.26);
}

.cpg-site-header h1,
.cpg-site-header h3,
.cpg-main-menu {
    position: relative;
    z-index: 1;
}

.cpg-site-header h1 {
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.cpg-site-header h3 {
    color: rgba(255, 255, 255, 0.86);
    margin: 8px auto 0;
    max-width: 720px;
    font-weight: 500;
}

.cpg-main-menu {
    gap: 9px;
    margin-top: 16px;
}

.cpg-main-menu a,
.topmenu a,
.buttonlist ul li a,
.button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border: 1px solid rgba(31, 111, 178, 0.18) !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88) !important;
    background-image: none !important;
    color: var(--ukr-blue-dark) !important;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
}

.cpg-main-menu a {
    min-height: 38px;
    padding: 8px 14px;
}

.cpg-main-menu a:hover,
.topmenu a:hover,
.buttonlist ul li a:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: #ffffff !important;
    color: var(--ukr-blue) !important;
    border-color: rgba(31, 111, 178, 0.36) !important;
    box-shadow: 0 7px 18px rgba(23, 32, 51, 0.14);
    transform: translateY(-1px);
    text-decoration: none;
}

.cpg-system-menu {
    margin-top: 18px;
}

.cpg-sub-menu a {
    background: rgba(255, 255, 255, 0.72) !important;
}

.cpg-gallery-content {
    margin-top: 18px;
}

.maintable {
    border: 1px solid var(--ukr-border) !important;
    border-radius: var(--ukr-radius-md);
    background: var(--ukr-surface) !important;
    box-shadow: var(--ukr-shadow-sm);
    overflow: hidden;
}

.tableh1 {
    background: linear-gradient(135deg, #1e6aa8, #6c9fbe) !important;
    color: #ffffff !important;
    padding: 10px 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tableh1 a,
.statlink,
.statlink a {
    color: #ffffff !important;
}

.tableh2,
.sortorder_cell,
.sortorder_options {
    background: linear-gradient(180deg, #eef6fb, #dfeaf2) !important;
    color: var(--ukr-text) !important;
    padding: 9px 12px;
    border-bottom: 1px solid var(--ukr-border);
}

.tableb,
.catrow,
.catrow_noalb,
.display_media,
.thumbnails,
.img_caption_table td {
    background: var(--ukr-surface-soft) !important;
    color: var(--ukr-text);
}

.tableb_alternate {
    background: #edf3f7 !important;
}

.tablef,
.img_caption_table th {
    background: #e5eef5 !important;
    color: var(--ukr-text);
}

.tableh1,
.tableh2,
.tableb,
.tablef,
.catrow,
.catrow_noalb,
.display_media,
.thumbnails,
.img_caption_table th,
.img_caption_table td {
    padding: 10px 12px;
}

.catlink,
.alblink {
    font-size: 15px;
    line-height: 1.3;
}

.catlink a,
.alblink a {
    color: #071827;
    text-decoration: none;
    border-bottom: 1px solid rgba(31, 111, 178, 0.24);
}

.catlink a:hover,
.alblink a:hover {
    color: var(--ukr-blue);
    border-bottom-color: transparent;
}

.album_stat {
    color: var(--ukr-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 7px 0 0;
}

/* Album cards inside old Coppermine tables. */
.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] {
    padding: 8px !important;
    background: #edf3f7 !important;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table {
    border: 1px solid var(--ukr-border);
    border-radius: var(--ukr-radius-md);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(23, 32, 51, 0.07);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table:hover {
    border-color: rgba(31, 111, 178, 0.30);
    box-shadow: 0 12px 28px rgba(23, 32, 51, 0.12);
    transform: translateY(-2px);
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table .tableh2 {
    background: #ffffff !important;
    padding: 10px 12px;
    border-bottom: 1px solid var(--ukr-border);
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.tableb,
.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.tableb_alternate {
    background: #ffffff !important;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate > td[width][valign="top"] > table td.thumbnails {
    min-width: 118px;
    padding: 12px !important;
    background: #ffffff !important;
}

/* Photo cards and preview thumbnails. */
.cpg-gallery-content td.thumbnails {
    background: #ffffff !important;
    border: 1px solid rgba(215, 227, 236, 0.72);
    border-radius: var(--ukr-radius-md);
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.055);
}

.cpg-gallery-content td.thumbnails a {
    display: inline-block;
}

.image,
a:link .image,
a:visited .image,
a:focus .image,
a:hover .image,
a:active .image,
.imageborder,
.middlethumb,
a:link .middlethumb,
a:visited .middlethumb,
a:focus .middlethumb,
a:hover .middlethumb,
a:active .middlethumb {
    border: 0 !important;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.14);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

a:hover .image,
a:hover .middlethumb,
a:hover img.image {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 32, 51, 0.19);
    filter: saturate(1.04);
}

.thumb_title {
    color: var(--ukr-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    padding-top: 7px;
}

.thumb_caption,
.thumb_filename,
.thumb_num_comments {
    color: var(--ukr-muted);
    font-size: 12px;
    line-height: 1.4;
}

.thumb_caption a {
    color: var(--ukr-blue);
    text-decoration: none;
}

.display_media {
    border-radius: var(--ukr-radius-md);
    text-align: center;
}

.display_media img {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.18);
}

.pic_title {
    color: var(--ukr-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin: 6px 0;
}

.pic_caption {
    color: var(--ukr-muted);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.navmenu {
    background: transparent !important;
    color: var(--ukr-blue-dark) !important;
}

.navmenu a {
    min-height: 38px;
    margin: 2px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ukr-blue-dark) !important;
    border: 1px solid var(--ukr-border);
    box-shadow: 0 2px 9px rgba(23, 32, 51, 0.06);
}

.navmenu a:hover {
    background: var(--ukr-blue-soft) !important;
    color: var(--ukr-blue-dark) !important;
    box-shadow: 0 7px 16px rgba(23, 32, 51, 0.12);
}

.textinput,
.listbox,
.listbox_lang,
textarea,
input[type="text"],
input[type="password"],
input[type="email"],
select {
    border: 1px solid var(--ukr-border-strong) !important;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ukr-text);
    padding: 7px 9px;
    box-shadow: inset 0 1px 2px rgba(23, 32, 51, 0.05);
}

.textinput:focus,
.listbox:focus,
.listbox_lang:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: rgba(31, 111, 178, 0.58) !important;
    box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.13);
}

.admin_menu {
    border: 1px solid var(--ukr-border) !important;
    border-radius: 12px;
    background: #ffffff !important;
    background-image: none !important;
    padding: 6px;
    box-shadow: 0 3px 12px rgba(23, 32, 51, 0.07);
}

.admin_menu a {
    color: var(--ukr-blue-dark);
    border-radius: 8px;
    padding: 4px 6px;
}

.admin_menu a:hover {
    background: var(--ukr-blue-soft);
    color: var(--ukr-blue-dark);
    text-decoration: none;
}

.cpg_message_info,
.cpg_message_success,
.cpg_message_warning,
.cpg_message_error,
.cpg_message_validation,
.message,
.cpg_summary {
    border-radius: 14px;
    box-shadow: var(--ukr-shadow-sm);
}

.img_caption_table {
    border: 1px solid var(--ukr-border);
    border-radius: var(--ukr-radius-md);
    overflow: hidden;
    box-shadow: var(--ukr-shadow-sm);
}

.img_caption_table th,
.img_caption_table td {
    border-top: 1px solid rgba(255, 255, 255, 0.75);
}

/* Comments usually inherit old table cells; these rules make them look like modern message cards. */
.comment_date {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin: 3px 0 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--ukr-blue-soft);
    color: var(--ukr-muted);
    font-size: 12px;
    font-weight: 700;
}

.cpg-gallery-content td.tableb .comment_date + br,
.cpg-gallery-content td.tableb_alternate .comment_date + br {
    display: none;
}

.cpg-gallery-content td.tableb:has(.comment_date),
.cpg-gallery-content td.tableb_alternate:has(.comment_date) {
    border-radius: 14px;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px var(--ukr-border);
}

/* Footer. */
#ukrelba {
    margin-top: 0;
    padding: 0 18px 28px;
    color: var(--ukr-text);
}

.ukrelba-footer-inner {
    max-width: 1200px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    border: 0;
    border-radius: var(--ukr-radius-lg);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--ukr-shadow-sm);
    padding: 20px;
}

.ukrelba-footer-col:first-child {
    display: none;
}

.ukrelba-footer-col strong {
    color: var(--ukr-text);
    font-size: 14px;
    margin-bottom: 8px;
}

.ukrelba-footer-col span {
    color: var(--ukr-muted);
    line-height: 1.45;
    margin-bottom: 6px;
}

.ukrelba-footer-copy {
    color: var(--ukr-muted);
    font-size: 12px;
    margin-top: 12px;
}

.footer,
.footer a {
    color: var(--ukr-muted);
}



.cpg-gallery-content tr.cpg-album-spacer-row,
.cpg-gallery-content tr.cpg-album-spacer-row > td,
.cpg-gallery-content tr.cpg-album-spacer-row img {
    display: none !important;
    height: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.cpg-gallery-content td.ukrelba-tabs-cell {
    padding: 0 !important;
}

/* Homepage category album rows: avoid orphan albums and let longer descriptions take more width. */
.cpg-gallery-content .maintable tr.ukrelba-album-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
}

.cpg-gallery-content .maintable tr.ukrelba-album-row > td.ukrelba-album-cell {
    display: block;
    box-sizing: border-box;
    flex: 0 0 auto;
    max-width: 100%;
}

.cpg-gallery-content .maintable tr.tableb.tableb_alternate.ukrelba-album-row > td.ukrelba-album-cell[width][valign="top"] {
    padding-top: 1px !important;
    padding-bottom: 1px !important;
}

.cpg-gallery-content .maintable tr.ukrelba-album-row > td.ukrelba-album-cell > table {
    width: 100% !important;
    height: 100%;
}

@media (max-width: 700px) {
    .cpg-gallery-content .maintable tr.ukrelba-album-row {
        flex-wrap: wrap;
    }

    .cpg-gallery-content .maintable tr.ukrelba-album-row > td.ukrelba-album-cell {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Smaller screens. */
@media (max-width: 900px) {
    .cpg-layout-shell,
    .ukrelba-footer-inner {
        border-radius: 18px;
    }

    .ukrelba-footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    body,
    table {
        font-size: 14px;
    }

    .cpg-page-wrap {
        padding: 10px;
    }

    .cpg-layout-shell {
        padding: 10px;
        box-shadow: 0 8px 24px rgba(23, 32, 51, 0.10);
    }

    .cpg-site-header {
        padding: 22px 12px 16px;
    }

    .cpg-main-menu a {
        min-height: 40px;
        padding: 8px 10px;
    }

    .tableh1,
    .tableh2,
    .tableb,
    .tablef,
    .catrow,
    .catrow_noalb,
    .display_media,
    .thumbnails,
    .img_caption_table th,
    .img_caption_table td {
        padding: 9px;
    }

    .pic_title {
        font-size: 18px;
    }

    #ukrelba {
        padding: 0 10px 18px;
    }
}

@media (max-width: 420px) {
    .cpg-site-header h1 {
        font-size: 26px;
    }

    .cpg-main-menu {
        gap: 7px;
    }

    .cpg-main-menu a {
        border-radius: 14px;
    }
}

/* SEO and content structure helpers. */
.cpg-site-lead {
    max-width: 820px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.55;
}

.ukrelba-breadcrumbs {
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid var(--ukr-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ukr-muted);
    font-size: 13px;
    line-height: 1.45;
    box-shadow: var(--ukr-shadow-sm);
}

.ukrelba-breadcrumbs a {
    color: var(--ukr-blue-dark);
    font-weight: 700;
    text-decoration: none;
}

.ukrelba-breadcrumbs a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .cpg-site-lead {
        font-size: 14px;
    }

    .ukrelba-breadcrumbs {
        margin-bottom: 10px;
        padding: 9px 11px;
    }
}


/* Core Web Vitals follow-up: reserve image space and reduce repaint cost. */
.cpg-gallery-content img[width][height] {
    height: auto;
}

.cpg-gallery-content td.thumbnails img.image,
.cpg-gallery-content td.thumbnails img.thumbnail,
.cpg-gallery-content img.strip_image {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cpg-gallery-content .display_media img.image {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    .image,
    .middlethumb,
    a:hover .image,
    a:hover .middlethumb,
    a:hover img.image {
        transition: none !important;
        transform: none !important;
    }
}


/* 2026-06-20 header/menu refinements for ukrelba.com */
.cpg-site-title-link {
    color: #ffffff !important;
    text-decoration: none !important;
    display: inline-block;
}

.cpg-site-title-link:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none;
}

.cpg-header-menu-wrap {
    position: relative;
    z-index: 1;
}

.cpg-mobile-nav-check,
.cpg-mobile-nav-button {
    display: none;
}

.cpg-sub-menu {
    margin-top: 18px;
}

.cpg-system-menu {
    margin-top: 10px;
}

.cpg-system-menu:empty {
    display: none;
}

@media (max-width: 700px) {
    .cpg-mobile-nav-check {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .cpg-mobile-nav-button {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        margin: 18px auto 0;
        padding: 9px 18px;
        border: 1px solid rgba(31, 111, 178, 0.18);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.88);
        color: var(--ukr-blue-dark);
        font-weight: 800;
        line-height: 1.2;
        box-shadow: 0 2px 8px rgba(23, 32, 51, 0.08);
        cursor: pointer;
        user-select: none;
    }

    .cpg-header-menu-wrap {
        display: none;
        margin-top: 10px;
    }

    .cpg-mobile-nav-check:checked + .cpg-mobile-nav-button + .cpg-header-menu-wrap {
        display: block;
    }

    .cpg-header-menu-wrap .cpg-main-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 8px;
    }

    .cpg-header-menu-wrap .cpg-main-menu a {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }
}

/* Modern HTML output: old border="0" attributes are removed in the final filter. */
img {
    border: 0;
}


/* Validator-safe replacements for old presentational table attributes. */
.cpg-align-left {
    text-align: left;
}

td.cpg-align-center,
th.cpg-align-center,
div.cpg-align-center,
p.cpg-align-center {
    text-align: center;
}

table.cpg-align-center {
    margin-left: auto;
    margin-right: auto;
}

.cpg-align-right {
    text-align: right;
}

table.cpg-width-100 {
    width: 100%;
}

table.cpg-width-99 {
    width: 99%;
}

td.cpg-height-1,
th.cpg-height-1 {
    height: 1px;
}

td.cpg-height-2,
th.cpg-height-2 {
    height: 2px;
}

td.cpg-height-7,
th.cpg-height-7 {
    height: 7px;
}

td.cpg-height-8,
th.cpg-height-8 {
    height: 8px;
}

table.cpg-cellspacing-0 {
    border-collapse: separate;
    border-spacing: 0;
}

table.cpg-cellspacing-1 {
    border-collapse: separate;
    border-spacing: 1px;
}

table.cpg-cellspacing-2 {
    border-collapse: separate;
    border-spacing: 2px;
}

table.cpg-cellpadding-0 > tbody > tr > td,
table.cpg-cellpadding-0 > tbody > tr > th,
table.cpg-cellpadding-0 > tr > td,
table.cpg-cellpadding-0 > tr > th {
    padding: 0;
}

table.cpg-cellpadding-1 > tbody > tr > td,
table.cpg-cellpadding-1 > tbody > tr > th,
table.cpg-cellpadding-1 > tr > td,
table.cpg-cellpadding-1 > tr > th {
    padding: 1px;
}

table.cpg-cellpadding-10 > tbody > tr > td,
table.cpg-cellpadding-10 > tbody > tr > th,
table.cpg-cellpadding-10 > tr > td,
table.cpg-cellpadding-10 > tr > th {
    padding: 10px;
}
