/*************************
  Coppermine Photo Gallery
  ************************
  Copyright (c) 2003-2016 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.6.03
  $HeadURL$
**********************************************/


body {
    font-family : Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color : Black;
}

body.nobgimage {
    background: none;
}

.cpg-global-wrapper {
    background: #ffffff;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden; /* Ensure rounded corners clip inner content */
}

#cpg_logo_block_outer  {
    background-color: transparent;
    padding: 15px 20px;
}

#cpg_logo_block_outer div.cpg_logo_block_inner {
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#cpg_logo_block_logo {
    border: none;
}

#cpg_logo_block_name {
    text-align: right;
}

#cpg_header_block_outer  {
    background-color: transparent;
    padding: 0 20px;
    border-bottom: 1px solid #E2E8F0;
    margin-bottom: 20px;
}

#cpg_header_block_outer div.cpg_header_block_inner {
    background-color: transparent;
    display: block;
    padding-bottom: 10px;
}

#cpg_main_block_outer  {
    background-color: transparent;
    padding: 0 20px;
}

#cpg_main_block_outer div.cpg_main_block_inner {
    background-color: transparent;
    display: block;
    min-height: 50vh; /* Ensure footer pushes down */
}

#cpg_footer_block_outer  {
    text-align: center;
    background-color: transparent;
    padding: 40px 20px 20px;
    border-top: 1px solid #E2E8F0;
}

#cpg_footer_block_outer div.cpg_footer_block_inner {
    background-color: transparent;
    display: block;
}

.cpg_starttable_outer  {
    background-color: transparent;
    background-image: url(images/main_block.png);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: 0pt -200px;
    padding-left: 20px;
}

.cpg_starttable_outer div.cpg_starttable_inner {
    background-color: transparent;
    background-image: url(images/main_block.png);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: 100% -200px;
    display: block;
    padding-top: 3px;
    padding-bottom: 3px;
    padding-right: 0px;
    padding-left: 0px;
}

#sysmenu {
    margin-top: 5px;
}

.menuheight {      /* IE7 */
    width: 1px;    /* IE7 */
    height: 95px;  /* IE7 */
}                  /* IE7 */


table {
    font-size: 12px;
}

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

h2 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    margin: 0px;
}

h3 {
    font-weight: normal;
    font-family: Verdana, Arial, Helvetica, 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;
}

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

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

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

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

a:link {
    color: #346;
    text-decoration: none;
}

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

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

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

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

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

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

.button, .admin_menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: white;
    background-color:#5A6C85;
    border: 1px solid #5A6C85;
    cursor:pointer;
    padding-left:0px;
    padding-right:0px;
    margin-right:2px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.button {
    font-size: 0.8em;
    white-space: nowrap;
}

a.button, a.admin_menu {
    color:white;
    text-decoration:none;
}

a:hover.button, a:hover.admin_menu {
    background-color: #FD9604;
}

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

.tableh1 {
    padding-top: 3px;
    padding-right: 10px;
    padding-bottom: 3px;
    padding-left: 10px;
    color: white;
    font-family: arial,helvetica,sans-serif;
    font-size: 1.1em;
    font-weight: bold;
    background-color:#A8B8CC;
    background-image: url(images/main_block.png);
    background-repeat: no-repeat;
    background-position: -10px -160px;
}

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

.tableb {
    background: #F0F4F7 ;
    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: #E7EAEF;
}

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

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

.catrow {
    background: #F0F4F7 ;
    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: 80%;
    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: 80%;
    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 {
    padding: 0px;
    margin: 0px;
}

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

.navmenu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: #FFFFFF;
    font-size: 100%;
    font-weight: bold;
    background : transparent url(images/main_block.png) no-repeat scroll -10px -160px;
    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 : #EFEFEF ;
    text-decoration: none;
    color: #000000;
}

.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;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

/* 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:#840084;
    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: 2px solid blue;
}

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

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

.thumbnails {
    background: #EFEFEF ;
    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 {
    line-height : 130%;
    font-size: 100%;
}

.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: #EFEFEF ;
    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: #000000;
    background-color: #D1D7DC;
    border: 1px solid #0E72A4;
    font-size: 80%;
    font-family: Arial, Helvetica, sans-serif;
    vertical-align : middle;

}

.pic_title {
    color: #000000;
    font-size: 120%;
    font-family: Arial, Helvetica, sans-serif;
    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: #000000;
    font-size: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-weight:bold;
    text-align : center;
    padding-top:0px;
    padding-bottom:0px;
    margin-top:0px;
    margin-bottom:0px;
    line-height:1.0em;
}

.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;
    margin-left:3px;
    margin-right:3px;
    margin-top:0px;
    margin-bottom:0px;
}

#cpgChooseThemeWrapper {
    float:left;
    margin-left:3px;
    margin-right:3px;
    margin-top:0px;
    margin-bottom:0px;
}

.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: #0E72A4;
    color: #fff;
}

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

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;
}

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 #CCCCCC;
}

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

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 0px;
    padding:15px 10px 15px 50px;
    background-repeat: no-repeat;
    background-position: 10px center;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.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: #EFEFEF;
    border: 5px solid #0E72A4;
}

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

.detail_head_collapsed, .detail_head_expanded {
    color: #0033CC;
}

/* Styles for the standard dropdown menus. */
main_menu {
    padding: 0 0 0 0.5em;
    float: left;
    margin: 0;
    width: 98%;
}

.dropmenu, .dropmenu ul {
    list-style: none;
    line-height: 1em;
    padding: 0;
    margin: 0;
}

.dropmenu {
    padding: 0 0.5em;
}

.dropmenu a {
    display: block;
    color: #000000;
    text-decoration: none;
}

.dropmenu a span {
    display: block;
    padding: 0 0 0 5px;
    font-size: 0.9em;
}

/* the backgrounds first level only*/
.dropmenu li a.firstlevel {
    margin-right: 8px;
}

.dropmenu li a.firstlevel span.firstlevel {
    display: block;
    position: relative;
    left: -5px;
    padding-left: 5px;
    height: 22px;
    line-height: 19px;
}

.dropmenu li {
    float: left;
    position: relative;
    padding: 0;
    margin: 0;
}

.dropmenu li ul {
    z-index: 90;
    display: none;
    position: absolute;
    width: 19.2em;
    font-weight: normal;
    border-bottom: solid 1px #999;
    background: url(images/menu_gfx.png) 0 -100px no-repeat;
    padding: 7px 0 0 0;
}

.dropmenu li li {
    width: 19em;
    margin: 0;
    border-left: solid 1px #999;
    border-right: solid 1px #999;
}

.dropmenu li li a span {
    display: block;
    padding: 8px;
}

.dropmenu li li a.firstlevel span.firstlevel {
    left: 0 !important;
}

.dropmenu li li a.firstlevel {
    margin-right: 0 !important;
}

.dropmenu li li a.firstlevel:hover span.firstlevel {
    background: #D4DBE4 !important;
    color: #000 !important;
    text-decoration: none !important;
}

.dropmenu li ul ul {
    margin: -1.8em 0 0 13em;
}

/* the active button */
.dropmenu li a.active {
    background: url(images/menu_gfx.png) no-repeat 100% 0;
    color: #ffffff;
    font-weight: bold;
}

.dropmenu li a.active span.firstlevel {
    background: url(images/menu_gfx.png) no-repeat 0 0;
}

/* the hover effects */
.dropmenu li a.firstlevel:hover {
    background: url(images/menu_gfx.png) no-repeat 100% -30px;
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
}

.dropmenu li a.firstlevel:hover span.firstlevel {
    background: url(images/menu_gfx.png) no-repeat 0 -30px;
}

/* the hover effects on level2 and 3*/
.dropmenu li li a:hover {
    background: #D4DBE4;
    color: #000;
    text-decoration: none;
}

.dropmenu li:hover ul ul, .dropmenu li:hover ul ul ul {
    top: -999em;
}

.dropmenu li li:hover ul {
    top: auto;
}

.dropmenu li:hover ul {
    display: block;
}

.dropmenu li li.additional_items {
    background-color: #fff;
}

/* Styles for the standard button lists.
------------------------------------------------------- */

.buttonlist ul li a {
    display: block;
    font-size: 0.8em;
    color: white;
    background: url(images/menu_gfx.png) no-repeat 0 -30px;
    padding: 0;
    margin-left: 12px;
    margin-right: 0px;
    cursor: pointer;
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;700&display=swap');

:root {
    --nw-gold: #FD9604;
    --nw-gold-hover: #e08503;
    --nw-blue: #346;
    --nw-bg: #f8fafc;
    --nw-card-bg: #ffffff;
    --nw-text: #1e293b;
    --nw-text-muted: #64748b;
    --nw-border: #e2e8f0;
    --nw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --nw-radius: 12px;
}

body {
    background-color: var(--nw-bg);
    color: var(--nw-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
}

/* Modern Card Layout for Gallery - Isolated with modern prefix */
.cpg-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.cpg-modern-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.cpg-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Stretched Link Technique - makes whole card clickable */
.cpg-stretched-link::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    content: "";
}

.cpg-modern-card {
    position: relative; /* Container for stretched link */
}

/* Ensure buttons remain on top of the stretched link */
.cpg-card-admin, 
.cpg-action-bar {
    position: relative;
    z-index: 2;
}

.cpg-card-img {
    position: relative;
    padding-top: 60%; /* Slightly deeper Aspect Ratio */
    background: #f8fafc;
    overflow: hidden;
}

.cpg-card-img img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Don't stretch or crop low-res images */
}

.cpg-card-content {
    padding: 16px;
    flex-grow: 1;
}

.cpg-card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--nw-blue);
}

.cpg-card-title a {
    text-decoration: none;
    color: inherit;
}

.cpg-card-title a:hover {
    color: var(--nw-gold);
}

.cpg-card-desc {
    font-size: 0.875rem;
    color: var(--nw-text-muted);
    margin-bottom: 12px;
}

.cpg-card-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--nw-text-muted);
    border-top: 1px solid var(--nw-border);
    padding-top: 12px;
}
/* Modern Breadcrumbs */
.cpg-breadcrumb {
    display: flex;
    align-items: center;
    font-size: 1.05rem; /* Slightly larger, more deliberate */
    font-weight: 500;
    color: var(--nw-text-muted);
    padding: 10px 0 16px 0; /* Padding for the underline */
    margin-bottom: 24px;
    border-bottom: 2px solid #e2e8f0; /* Sleek structural underline */
}

.cpg-breadcrumb a {
    color: #1a365d;
    text-decoration: none;
    font-weight: 600; /* Sturdier links */
    transition: color 0.2s ease;
}

.cpg-breadcrumb a:hover {
    color: #d4af37;
}

/* Modern Section Titles */
.cpg-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a365d;
    margin: 32px 0 16px;
    padding-bottom: 8px;
    border-bottom: 3px solid #d4af37;
    display: inline-block;
}

/* Modern Stats Block - Improved Legibility & Wrapping */
.cpg-modern-stats {
    background: #1a365d;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    margin: 24px 0;
    font-size: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    line-height: 1.4;
    text-align: center;
}

.cpg-card-img {
    width: 100%;
    aspect-ratio: 5/3;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpg-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Specific styling for folder/directory cards */
.cpg-folder-card {
    flex-direction: row;
    height: auto;
    min-height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid var(--nw-gold);
}

.cpg-folder-card .cpg-card-img {
    width: 80px; /* Slightly wider for real thumbs */
    height: 80px;
    margin: 12px;
    border-radius: 8px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    position: relative;
    background: var(--nw-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cpg-folder-card .cpg-card-img::before {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FD9604'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3 7v10a2 2 0 002 2h14a2 2 0 002-2V9a2 2 0 00-2-2h-6l-2-2H5a2 2 0 00-2 2z' /%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    z-index: 1;
    opacity: 0.5; /* Subtle fallback icon */
}

.cpg-folder-card .cpg-card-img img {
    display: block; /* Show if it exists */
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    position: relative;
}

/* Hide fallback icon if image is loaded */
.cpg-folder-card .cpg-card-img img:not([src*="spacer.gif"]):not([src*="folder.png"]) {
    opacity: 1;
}

.cpg-folder-card .cpg-card-img img[src*="spacer.gif"],
.cpg-folder-card .cpg-card-img img[src*="folder.png"] {
    display: none; /* Let the ::before show */
}

/* Category thumbnails in main white area */
.cpg-card-floating-thumb {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--nw-border);
    background: #f1f5f9;
    max-height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpg-card-floating-thumb img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.cpg-cat-card {
    flex-direction: column;
}

.cpg-cat-card .cpg-card-img {
    height: 180px; /* slightly smaller to account for padding */
    padding: 15px 15px 0 15px; /* Add padding to look like it's in the white space */
    background: white; /* Match card background */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpg-cat-card .cpg-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #f1f5f9; /* Grey background behind the image itself now */
    border-radius: 8px;
    border: 1px solid var(--nw-border);
}

.cpg-folder-card .cpg-card-content,
.cpg-cat-card .cpg-card-content {
    padding: 15px 15px 15px 5px;
    justify-content: flex-start;
    flex-grow: 1; /* Ensure content takes space */
}

.cpg-folder-card .cpg-card-title {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

/* Modern Pagination Tabs (Front-end only) */
.cpg-main-tabs { 
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cpg-pagination-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.cpg-pagination-list li a,
.cpg-pagination-list li b {
    display: block;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--nw-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--nw-blue);
    transition: all 0.2s;
    font-weight: 600;
}

.cpg-pagination-list li a:hover {
    background: var(--nw-gold);
    color: white;
    border-color: var(--nw-gold);
    transform: translateY(-2px);
}

.cpg-pagination-list li.cpg-tab-active b {
    background: var(--nw-blue);
    color: white;
    border-color: var(--nw-blue);
}

.cpg-tab-stat {
    margin-right: 20px;
    font-size: 0.9rem;
    color: var(--nw-text-muted);
    font-style: italic;
}

/* Fix for legacy images in cards */
.cpg-card-img img {
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Modern Table Container (Front-end only) */
.cpg-content-table {
    background: var(--nw-card-bg);
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
    padding: 20px;
    margin: 20px 0;
    box-shadow: var(--nw-shadow);
}

/* Fix for nested data in modern table */
.cpg-modern-table b, 
.cpg-modern-table strong {
    color: var(--nw-blue);
    display: inline-block;
    min-width: 120px;
    margin-right: 10px;
}

.cpg-modern-table a {
    color: var(--nw-blue);
    font-weight: 500;
    text-decoration: none;
}

.cpg-modern-table a:hover {
    color: var(--nw-gold);
}

/* Category Album List inside Cards */
.cpg-cat-albums {
    padding: 12px 16px;
    font-size: 0.85rem;
    background: #f8fafc;
    border-top: 1px solid var(--nw-border);
    color: var(--nw-text-muted);
}

.cpg-cat-albums a {
    color: var(--nw-blue);
    font-weight: 600;
    text-decoration: none;
}

.cpg-cat-albums a:hover {
    text-decoration: underline;
}

.cpg-label {
    font-weight: 700;
    color: var(--nw-blue);
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    margin-right: 8px;
}
.buttonlist ul li a:hover {
    background: url(images/menu_gfx.png) no-repeat 0 0;
    color: #fff;
    text-decoration: none;
}

.buttonlist ul li a span {
    background: url(images/menu_gfx.png) no-repeat 100% -30px;
    display: block;
    height: 24px;
    line-height: 20px;
    padding: 0 8px 0 0;
    position: relative;
    right: -8px;
}

.buttonlist ul li a:hover span {
    background: url(images/menu_gfx.png) no-repeat 100% 0;
}

/* the active one */
.buttonlist ul li a.active {
    background: url(images/menu_gfx.png) no-repeat 0 -60px;
    color: black;
    font-weight: bold;
}

.buttonlist ul li a.active span {
    background: url(images/menu_gfx.png) no-repeat 100% -60px;
}

.buttonlist ul li a.active {
    font-weight: bold;
}

.buttonlist ul li a.active:hover {
    color: #ddf;
}

.align_top ul li a, .align_bottom ul li a {
    margin: 0 12px 0 0;
}

.rounded_menu {
    display: block;
    font-size: 0.8em;
    color: white;
    background: url(images/menu_gfx.png) no-repeat 0 -30px;
    padding: 0;
    cursor: pointer;
}

.rounded_menu span {
    background: url(images/menu_gfx.png) no-repeat 100% -30px;
    display: block;
    height: 24px;
    line-height: 20px;
    padding: 0 8px 0 0;
    position: relative;
    right: -8px;
}

a:hover.rounded_menu  {
    background: url(images/menu_gfx.png) no-repeat 0 0;
    color: #fff;
    text-decoration: none;
}

a:hover.rounded_menu span {
    background: url(images/menu_gfx.png) no-repeat 100% 0;
}

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

/* displayimage.php Modernization */
.cpg-display-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: var(--nw-card-bg);
    border-radius: var(--nw-radius);
    box-shadow: var(--nw-shadow);
    border: none; /* Ensure no phantom borders */
}

.cpg-img-navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #f1f5f9;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cpg-img-navbar div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cpg-nav-btn {
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.cpg-nav-btn:hover {
    background: var(--nw-border);
}

.cpg-nav-pos {
    font-weight: 600;
    color: var(--nw-text-muted);
}

.cpg-main-img-container {
    text-align: center;
    margin: 30px auto;
    max-width: 1000px; /* Constraint to avoid giant images */
}

.cpg-main-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border: 4px solid white; /* Frame effect */
    background: white;
}

.cpg-action-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid var(--nw-border);
}

.cpg-pic-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
    padding: 30px;
    background: #fdfdfd;
    border: 1px solid var(--nw-border);
    border-radius: var(--nw-radius);
}

.cpg-bc-outer {
    /* Container for breadcrumb */
    display: block;
    width: 100%;
}

/* Duplicate breadcrumb rules removed - source of truth is now at line 1230 */

.cpg-bc-sep {
    color: var(--nw-text-muted);
    font-size: 1.2rem;
    opacity: 0.5;
}

.cpg-info-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cpg-info-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--nw-gold);
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.cpg-info-value {
    font-size: 1rem;
    color: var(--nw-text);
    word-break: break-all;
}

/* Navigation Buttons Styling */
.cpg-nav-btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--nw-border);
    color: var(--nw-blue);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.cpg-nav-btn:hover:not(.disabled) {
    background: var(--nw-blue);
    color: white;
    border-color: var(--nw-blue);
    transform: translateY(-1px);
}

.cpg-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f1f5f9;
}

.cpg-display-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--nw-blue);
    margin-bottom: 8px;
    text-align: center;
}

.cpg-display-caption {
    font-size: 1.1rem;
    color: var(--nw-text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Admin Action Buttons (adm_menu) - Forced Premium Style */
.cpg-action-bar a,
.cpg-modern-card .cpg-card-admin a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 18px !important;
    background: #ffffff !important;
    border: 1px solid var(--nw-border) !important;
    border-radius: 50px !important; /* Rounded pill style */
    color: var(--nw-blue) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    margin: 5px !important;
}

.cpg-action-bar a:hover,
.cpg-modern-card .cpg-card-admin a:hover {
    background: var(--nw-blue) !important;
    color: #ffffff !important;
    border-color: var(--nw-blue) !important;
    transform: translateY(-2px) rotate(0.5deg) !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1) !important;
}

.cpg-action-bar a img,
.cpg-modern-card .cpg-card-admin a img {
    filter: brightness(0) saturate(100%) invert(32%) sepia(19%) saturate(1013%) hue-rotate(186deg) brightness(91%) contrast(88%) !important; /* blue color */
    transition: filter 0.3s ease !important;
    width: 16px !important;
    height: 16px !important;
}

.cpg-action-bar a:hover img,
.cpg-modern-card .cpg-card-admin a:hover img {
    filter: brightness(0) saturate(100%) invert(100%) !important; /* White on hover */
}

/* Hide legacy elements inside buttons if they exist */
.cpg-action-bar a span,
.cpg-modern-card .cpg-card-admin a span {
    background: none !important;
    padding: 0 !important;
    display: inline !important;
    position: static !important;
    color: inherit !important;
}

/* Fix for Config "Word Cloud" - ensure list style is restored */
.buttonlist ul {
    display: flex;
    flex-wrap: wrap; /* Fallback but cleaner */
    gap: 10px;
    list-style: none;
    padding: 0;
}

/* Modern Comment Bubble Design (replacing tables) */
.cpg-comment-bubble {
    background: white;
    border: 1px solid var(--nw-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    position: relative;
    transition: transform 0.2s ease;
}

.cpg-comment-bubble:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.cpg-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.cpg-comment-user {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cpg-commenter-name {
    color: var(--nw-blue);
    font-size: 1.1rem;
}

.cpg-commenter-ip {
    color: var(--nw-text-muted);
    font-size: 0.8rem;
}

.cpg-comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--nw-text-muted);
    margin-bottom: 15px;
}

.cpg-comment-body {
    color: var(--nw-text);
    line-height: 1.6;
    font-size: 1rem;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

/* Comment Icons / Admin */
.cpg-comment-admin, 
.cpg-comment-report {
    display: flex;
    gap: 12px;
    align-items: center;
}

.cpg-comment-admin img,
.cpg-comment-report img {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
    filter: brightness(0) saturate(100%) invert(32%) sepia(19%) saturate(1013%) hue-rotate(186deg) brightness(91%) contrast(88%); /* blue tinge */
}

.cpg-comment-admin img:hover,
.cpg-comment-report img:hover {
    transform: scale(1.2);
    filter: none; /* Show real colors on hover if any */
}

/* Hide legacy comment elements if they leak */
#comments table[width="100%"] {
    display: none; /* We replaced them with our bubbles in the template */
}

/* Modern Coppermine Menu Overrides */
.dropmenu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
    align-items: center;
}

.dropmenu li {
    position: relative;
    list-style: none;
    margin: 0;
}

.dropmenu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: #1a365d;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.dropmenu a img {
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.2s ease-in-out;
}

.dropmenu a:hover {
    background-color: #f1f5f9;
    color: #1a365d;
    text-decoration: none;
}

.dropmenu a:hover img {
    opacity: 1;
    filter: none;
}

/* Flex layout for the main menu wrapper to hold the three ULs inline */
#main_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-bottom: 15px;
}
