.homepagemaster {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: clamp(10px, 1.5vw, 25px);
}

.homelayoutfirstcolumn,
.homelayoutcolumn {
  flex: 1 1 360px;
  min-width: 0;
  padding: 5px;
}

.panel {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; 
}

/* --- Buttons Section --- */
.buttonframeborder {
  background-image: url('/assets/global/corkboardframe.jpg');
  background-color: #42351b;
  background-size: 800px; /*When button list gets larger ensure this scales properly*/
  background-repeat: no-repeat;
  padding: clamp(6px, 1vw, 15px); 
  border-radius: 8px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5), 0 4px 10px rgba(0,0,0,0.3);
  width: 100%;
  box-sizing: border-box;
}

.buttonframecontainer {
  background-image: url('/assets/global/corkboardinterior.jpg');
  background-size: 800px; /*When button list gets larger ensure this scales properly*/
  background-repeat: no-repeat;
  padding: clamp(8px, 1.2vw, 18px);
  border-radius: 4px;
  box-shadow: inset 0 4px 8px rgba(0,0,0,0.4);
  background-color: #e6e0c2;

  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(6px, 0.8vw, 12px);
}

.buttonframeborder img {
  display: block;
  image-rendering: pixelated;
  transition: transform 0.1s ease;
  display: inline-flex; 
  outline: none;
  max-width: 100%; 
  height: auto; 
}

.buttonframecontainer a:hover img {
  transform: scale(1.05);
}

.directorycontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  height: auto; 
  gap: clamp(8px, 1.2vw, 20px);
  width: 100%;
  box-sizing: border-box;
}

.directorycontainer img {
  width: clamp(30px, 3.5vw, 60px); 
  height: clamp(30px, 3.5vw, 60px);
  object-fit: contain;
  display: block;
}

.directoryitem a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  word-break: break-all;
  font-size: clamp(0.75rem, 1vw, 1.1rem); 
}

.youtubewindowscrn {
  position: relative;
  width: 100%;
  max-width: 480px;
  display: inline-block;
  aspect-ratio: 16 / 9;
}

.youtubewindowscrn .window-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  object-fit: fill;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 2;
}

.youtubewindowscrn .window-video {
  position: absolute;
  border: none;
  z-index: 1;
  top: 8%;       
  bottom: 2%;    
  left: 2%;      
  right: 2%;     
  width: 96%;    
  height: 89.5%;   
}

.youtubewindowscrn2 {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: inline-block;
  aspect-ratio: 16 / 9;
}

.youtubewindowscrn2 .window-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  object-fit: fill;
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 2;
}

.youtubewindowscrn2 .window-video {
  position: absolute;
  border: none;
  z-index: 1;
  top: 8.3%;       
  bottom: 2%;    
  left: 2%;      
  right: 2%;     
  width: 96%;    
  height: 89.5%;   
}

.actart {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.actart .galleryitem {
  position: relative;
  left: auto;
  top: auto;
  margin: 0 auto;
  width: min(100%, 300px);
  float: none;
  padding: 8px;
  background-image: url('/assets/mywork/gallerypageassets/workframedefault.webp');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.actart .galleryitem:hover {
  transform: scale(1.05);
}

.homepage-preview-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  left: auto;
  top: auto;
  overflow: hidden;
  border-radius: 10px;
}

.homepage-preview-card .imgwrap {
  width: 100%;
  height: calc(100% - 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.homepage-preview-card .galleryimage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent;
  display: block;
}

@media (max-width: 768px) {
  .homepagemaster {
    flex-direction: column;
  }

  .homelayoutfirstcolumn,
  .homelayoutcolumn {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
  }
}

.mostrecentblog{
  background-image: var(--notepadbg);
  color: rgb(0, 0, 0);
}

