/* =====================================================
   STYLE GUIDE – K&N ART GALLERY
   =====================================================
   0. Design Tokens
   0. Spacing utilities
   1. Base / Reset
   2. Typography and Text Spacing
   3. Header / Navigation
   4. Layout Utilities
   5. Homepage
   6. Galleries (drawings, paintings)
   7. Sculpture Pages
   8. Footer
   9. Responsive (media queries)

   ===================================================== */
/*to replace
 <br> with <div class="spacer-md"></div>*/

 /* =========================================
   DESIGN TOKENS — SPACING & SIZES
========================================= */

/* TYPOGRAPHY TOKENS */

:root {
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-xxl: 36px;

  --line-body: 1.6;
  --line-heading: 1.3;
}

/* SPACING TOKENS */
:root {
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-xxl: 80px;
  
  --content-width: 980px;
}
/* =========================================
   SPACING UTILITIES
========================================= */

.spacer-xs { margin-bottom: var(--space-xs); }
.spacer-sm { margin-bottom: var(--space-sm); }
.spacer-md { margin-bottom: var(--space-md); }
.spacer-lg { margin-bottom: var(--space-lg); }
.spacer-xl { margin-bottom: var(--space-xl); }

/* =========================================
   GLOBAL IMAGE SAFETY
========================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* =========================
   1. Base / Reset
   ========================= */

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

html {
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--line-body);
  color: #110a45;
   position: relative;
}

/* =========================
   2. Typography
   ========================= */
p {
    margin-bottom: var(--space-md);
    overflow-wrap: break-word;
  }     
  h1 {
    font-size: var(--text-lg);
    line-height: var(--line-heading);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-weight:bold;
    letter-spacing: .6em;
    color:#26206C;
  }
  
  h2 {
    font-size: var(--text-md);
    line-height: var(--line-heading);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight:bold;
    letter-spacing: .2em;   
    color:#26206C;
   }
  
  h3 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
    font-style:italic;
    color:#26206C;
  }
  
  h4 {
    font-size: var(--text-md);
    margin-bottom: var(--space-xs);
    color:#26206C;
  }
  
  .a-inline { 
    font-style:italic; 
    font-size: var(--text-sm);
    font-weight: bold;
    color:rgb(55, 0, 255);   
    text-decoration:none;
  }

  /* remove underlining*/
a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:hover { text-decoration: none; }
a:active { text-decoration: none; }



/* =========================
   3. Header / Navigation
   ========================= */
/* =========================================
   NAVIGATION — BASE
========================================= */

#nav_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  position: relative;
  z-index: 1000;
}

#nav_wrap .logo img {
  max-height: 80px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* active navigation option */ 
.active {
  font-style: italic;
  font-weight: lighter;
  text-decoration: line-through;
}

/* =========================
   LEGACY LIST STYLES
   (Navigation styles removed)
   ========================= */
ul.nav {
  display: flex;
  flex-direction: row;          /* LEFT → RIGHT */
  justify-content: flex-end;    /* menu on the right */
  align-items: center;
  gap: 30px;

  list-style: none;
  margin: 0;
  padding: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: .1em;
}

/* Top-level menu items */
ul.nav > li {
  position: relative;           /* anchor for dropdown */
}

/* Links */
ul.nav > li > a {
  display: block;
  padding: 5px 0;
  color: #090364;
  text-decoration: none;
}

/* Hover effect */
ul.nav > li > a:hover {
  opacity: 0.6;
 font-style: italic;
  text-decoration: line-through;
}

/*    NAVIGATION — DROPDOWNS */

.nav li {
  position: relative; /* anchor */
}

.nav li ul {
  position: absolute;        /* ← KEY FIX */
  top: 100%;
  left: 0;

  display: none;
  flex-direction: column;

  background: #fff;
  padding: var(--space-sm) 0;
  min-width: 200px;

  /*box-shadow: 0 4px 12px rgba(0,0,0,0.12);*/
  z-index: 5000;
}

.nav li:hover > ul {
  display: block;
}


/* =========================
   4. Layout Utilities
   ========================= */
.center {
  margin: auto;
  width: 80%;
  text-align: justify;

}
.right {
    /*position: absolute;*/
    right: 0px;
    width: 300px;
    border: 3px solid #73AD21;
    padding: 10px;
  }
.clear,
.clearboth {
  clear:both;
  display:block;
  font-size:0;
  height:0;
  line-height:0;
  width:100%;
  }
  div.clear, .clear, hr.clear {
  clear:both;
  margin:0;
  padding:0;
  border:0;
  }

.tiny {
font-size:.80em;
font-style:italic;
color:#FBFBEF;
background-color:#999999;
display: inline-block;
height: 5px;
}
.buttons {
font-size:10px;
display:block;

width:12px;
height:15px;
padding-top:10px;
}

.smallbox {
	width: 200px;
	margin: 1px;
	position: relative;
}

.page-content {
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}


/* =========================
   5. Homepage
   ========================= */

.slideshow-container {
  margin-top: var(--space-xl);
  position: relative;
 /* max-width: 900px;
  max-height: 600px;*/
  z-index: 1;
}

/*slide show style*/
.slide-image {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
}

.mySlides {display: none;}
/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}


/* =========================
   6. Galleries / Content
   ========================= */

.content-section {
  margin-bottom: var(--space-xxl);
}

/* Example future gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/*    GALLERY IMAGE CONSTRAINTS */

#gallery img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ADDED January 24, 2026 AI */
#gallery .column img {
  max-width: 300px;   /* adjust visually */
  margin: 0 auto;
}

/* CLEAN UP January 24, 2026 AI*/
.main-column,
.main-column-italic {
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-md);
  line-height: var(--line-body);
  text-align: left;
}

.main-column-italic {
  font-style: italic;
}

/*RESPONSIVE GRID css*/

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* FOUR EQUAL COLUMNS that sits next to each other */
.column {
  flex: 20%;
  max-width: 20%;
  padding: 0 2px;
}

.column img {
  margin-top: 4px;
  vertical-align: middle;
}

/*ADDED January 24, 2026 AI*/
.column img {
  width: auto;
  max-width: 100%;
}

/* TWO EQUAL COLUMNS that sits next to each other */
.column2 {
  flex: 50%;
  max-width: 30%;
  padding: 0 10px;
  color: rgb(207, 203, 203);
  font-size: 16px;
  text-align: left;
}
/*FADING IMAGE*/
.img_container {
    position: relative;
    width: 100%;
}
.img_container:hover .image {
  opacity: 0.3;
}

.img_container:hover .middle {
  opacity: 1;
}

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.middle {
  transition: .5s ease;
  opacity: 0;
  /*position: absolute;*/
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.text {
  background-color: #4CAF50;
  color: white;
  font-size: 16px;
  padding: 16px 32px;
}

/* =========================
   7. Sculpture Pages
   ========================= */

/* SCULPTURE SLIDES */
.container {
  position: relative;
}

.container img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

/* Hide slides by default (JS controls visibility) */
.sculptureSlides1,
.sculptureSlides2,
.sculptureSlides3,
.sculptureSlides4,
.sculptureSlides5 {
  display: none;
  margin: 0 auto;
  width: 50%;
}

/* =========================
   SCULPTURE THUMBNAILS
   ========================= */

.row-sculpture {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px auto 32px;
}

.column-sculpture {
  flex: 0 0 auto;
}

.column-sculpture img {
  width: 80px;
  height: auto;
  display: block;
  cursor: pointer;
  opacity: 0.7;
}

.column-sculpture img:hover,
.column-sculpture img.active {
  opacity: 1;
}

/* =========================
   8. Footer
   ========================= */
#footer {
  width:100%;
  position:relative;
  bottom: 0;
  margin:0 auto;
  text-align:left;
  background:#f6f6f5;
  font-style:italic;
  }

#copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  font-size: 14px;
}

.copyright-icons a {
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.copyright-icons a:hover {
  /*transform: translateY(-2px);*/
  opacity: 0.7;    
}

.copyright-icons a:first-child {
  margin-left: 0;
}
.copyright-icons img {
  height: 22px;
  width: auto;
}


/* used in scroll function */
#myBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: rgb(55, 0, 255);
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 4px;
}

#myBtn:hover {
  background-color: #555;
}

/* =========================================
   FOOTER – MOBILE
========================================= */

@media (max-width: 600px) {
  #copyright {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .copyright-icons {
    justify-content: center;
  }

  .copyright-icons a {
    margin-left: 12px;
  }

  .copyright-icons a:first-child {
    margin-left: 0;
  }
}


/* =========================
   9. Responsive
   ========================= */
/* Responsive layout - makes a two column-layout instead of four columns */
@media (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {

  .nav li ul {
    position: relative;   /* ← THIS FIXES OVERLAP */
    top: auto;
    left: auto;
    display: block;
    padding-left: var(--space-md);
  }

}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}
/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}
@media screen and (max-height: 450px) {
.sidenav {padding-top: 15px;}
.sidenav a {font-size: 18px;}
}

/* =========================
   10. Legacy / Side Navigation
   ========================= */

.sidenav {
height: 100%;
width: 160px;
z-index: 1;
top: 0;
left: 0;
background-color: transparent;
overflow-x: hidden;
padding-top: 20px;
margin-top: 140px;
margin-left: 50px;
}

.sidenav a {
padding: 6px 8px 6px 16px;
text-decoration: none;
font-size: 25px;
color:#dcdcde;
display: block;
}

.sidenav a:hover {
color: #f1f1f1;
} 

/* TOKEN */
:root {
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
}

#mid-content {
  background-color: #FFFFFF;
  min-width: 980px;
  margin:0px auto;
  min-height: 800px;

    }
				
/* jQuery LIGHTBOX plugin - Gallery style */
#gallery {
background-color: #FFFFFF;
min-width: 980px;
margin:0px auto auto 100px;
padding: 10px 50px 0px 50px; /*top, right, bottom, left*/
text-align:left;
	}

  /*   LIGHTBOX FIX */
/* jQuery Lightbox overlay */
#jquery-overlay {
  z-index: 10000 !important;
}

/* Lightbox container */
#jquery-lightbox {
  z-index: 10001 !important;
}

	
/*TABLE proparties
table, td, th {
  text-align:center;
  vertical-align:middle;
  }
  table {
  margin:10px 0;
  border-collapse:separate;
  border-spacing:0;
  border:1px solid #e1e1e1;
  }
  table th {
  background:#f4f4f4;
  padding:10px;
  border-bottom:1px solid #fff;
  font-size:.85em;
  text-transform:uppercase;
  letter-spacing:1px;
  }
  table td {
  padding:10px;
  border-top:1px solid #ccc;
  font-size:.9167em;
  }
  table tr {
  background:#f7f7f7;
  }

img {vertical-align: middle;}*/


